-rw-r--r-- | korganizer/calendarview.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index e13d0be..720ad78 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -642,3 +642,4 @@ void CalendarView::checkAlarms() QDateTime dt ( QDate (2005,1,1), QTime( 0,0,0 ) ); - int secs = config->readNumEntry( "LatestProgramStop" ) - 30; + int secto = dt.secsTo( QDateTime::currentDateTime() ); + int secs = config->readNumEntry( "LatestProgramStop" , secto) - 30; //secs -= ( 3600 * 24*3 ); // debug only |