author | zautrix <zautrix> | 2005-06-11 17:03:59 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-11 17:03:59 (UTC) |
commit | 81370a5f955c2710b6e9336b6c412c8d630ef72a (patch) (side-by-side diff) | |
tree | 6252851fbafcbc3ff777e1af0171990124beb23e /korganizer/calendarview.cpp | |
parent | 0cfaf22fc5d8f511320813171be84ce3436990c6 (diff) | |
download | kdepimpi-81370a5f955c2710b6e9336b6c412c8d630ef72a.zip kdepimpi-81370a5f955c2710b6e9336b6c412c8d630ef72a.tar.gz kdepimpi-81370a5f955c2710b6e9336b6c412c8d630ef72a.tar.bz2 |
fixes
-rw-r--r-- | korganizer/calendarview.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 4b82aa8..8f5de4d 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -644,9 +644,11 @@ void CalendarView::checkAlarms() QDateTime dt ( QDate (2005,1,1), QTime( 0,0,0 ) ); int secto = dt.secsTo( QDateTime::currentDateTime() ); int secs = config->readNumEntry( "LatestProgramStop" , secto) - 30; + qDebug("KO: Reading program stop %d ", secs); //secs -= ( 3600 * 24*3 ); // debug only QDateTime latest = dt.addSecs ( secs ); qDebug("KO: Last termination on %s ", latest.toString().latin1()); + qDebug("KO: Current Time %s ",QDateTime::currentDateTime().toString().latin1() ); QPtrList<Incidence> el = mCalendar->rawIncidences(); QPtrList<Incidence> al; Incidence* inL = el.first(); @@ -2156,8 +2158,13 @@ void CalendarView::writeSettings() writeFilterSettings(config); config->setGroup( "AppRun" ); - QDateTime dt ( QDate (2005,1,1), QTime( 0,0,0 ) ); - config->writeEntry( "LatestProgramStop", dt.secsTo( QDateTime::currentDateTime() ) ); + QDateTime dt ( QDate (2005,3,1), QTime( 0,0,0 ) ); + int secs = dt.secsTo( QDateTime::currentDateTime() ); + config->writeEntry( "LatestProgramStop", secs ); + qDebug("KO: Writing stop time: %d ", secs); + qDebug("KO: Current Time %s ",QDateTime::currentDateTime().toString().latin1() ); + QDateTime latest = dt.addSecs ( secs ); + qDebug("KO: Test termination on %s ", latest.toString().latin1()); config->setGroup( "Views" ); config->writeEntry( "ShownDatesCount", mNavigator->selectedDates().count() ); |