[mythtv] [patch] problem with mythfilldatabase
Dave Alden
alden at math.ohio-state.edu
Sat Jan 24 16:55:59 EST 2004
Hi,
I noticed my last couple of runs of mythfilldatabase have been erroring
out. I tracked it down to the patch for filldata.cpp (version 1.82) that
added the following lines:
from.setDate(*qCurrentDate);
from.addDays(offset);
from.addSecs(listing_wrap_offset);
to = from;
to.addDays(nextoffset);
The 2 lines that call addDays should have reassigned the value to the
variable. I've attached a patch. :-)
...dave
-------------- next part --------------
Index: programs/mythfilldatabase/filldata.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythfilldatabase/filldata.cpp,v
retrieving revision 1.83
diff -u -r1.83 filldata.cpp
--- programs/mythfilldatabase/filldata.cpp 23 Jan 2004 06:01:17 -0000 1.83
+++ programs/mythfilldatabase/filldata.cpp 24 Jan 2004 21:43:57 -0000
@@ -1031,10 +1031,10 @@
QDateTime from, to;
from.setDate(*qCurrentDate);
- from.addDays(offset);
+ from = from.addDays(offset);
from.addSecs(listing_wrap_offset);
to = from;
- to.addDays(nextoffset);
+ to = to.addDays(nextoffset);
QSqlQuery query;
QString querystr;
More information about the mythtv-dev
mailing list