author | zautrix <zautrix> | 2005-06-03 23:11:33 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-03 23:11:33 (UTC) |
commit | aa0f7df485c3ff0c298d4924ac1e8a5e9e6da627 (patch) (unidiff) | |
tree | eed3edfc9210e1bca07de6d642dc2486ba8bedfd | |
parent | 858b047efb5627824438cb3877e7bec0cebb3751 (diff) | |
download | kdepimpi-aa0f7df485c3ff0c298d4924ac1e8a5e9e6da627.zip kdepimpi-aa0f7df485c3ff0c298d4924ac1e8a5e9e6da627.tar.gz kdepimpi-aa0f7df485c3ff0c298d4924ac1e8a5e9e6da627.tar.bz2 |
fixxx
-rw-r--r-- | korganizer/calendarview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 36db9c4..c01be9b 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -621,25 +621,25 @@ CalendarView::~CalendarView() | |||
621 | delete mStorage; | 621 | delete mStorage; |
622 | delete mDateFrame ; | 622 | delete mDateFrame ; |
623 | delete beamDialog; | 623 | delete beamDialog; |
624 | delete mEventViewerDialog; | 624 | delete mEventViewerDialog; |
625 | //kdDebug() << "~CalendarView() done" << endl; | 625 | //kdDebug() << "~CalendarView() done" << endl; |
626 | } | 626 | } |
627 | void CalendarView::checkAlarms() | 627 | void CalendarView::checkAlarms() |
628 | { | 628 | { |
629 | KConfig *config = KOGlobals::config(); | 629 | KConfig *config = KOGlobals::config(); |
630 | config->setGroup( "AppRun" ); | 630 | config->setGroup( "AppRun" ); |
631 | QDateTime dt ( QDate (2005,1,1), QTime( 0,0,0 ) ); | 631 | QDateTime dt ( QDate (2005,1,1), QTime( 0,0,0 ) ); |
632 | int secs = config->readNumEntry( "LatestProgramStop" ) - 30; | 632 | int secs = config->readNumEntry( "LatestProgramStop" ) - 30; |
633 | //secs -= ( 3600 * 24*3 ); // debug only | 633 | secs -= ( 3600 * 24*3 ); // debug only |
634 | QDateTime latest = dt.addSecs ( secs ); | 634 | QDateTime latest = dt.addSecs ( secs ); |
635 | qDebug("KO: Last termination on %s ", latest.toString().latin1()); | 635 | qDebug("KO: Last termination on %s ", latest.toString().latin1()); |
636 | QPtrList<Incidence> el = mCalendar->rawIncidences(); | 636 | QPtrList<Incidence> el = mCalendar->rawIncidences(); |
637 | QPtrList<Incidence> al; | 637 | QPtrList<Incidence> al; |
638 | Incidence* inL = el.first(); | 638 | Incidence* inL = el.first(); |
639 | while ( inL ) { | 639 | while ( inL ) { |
640 | bool ok = false; | 640 | bool ok = false; |
641 | int offset = 0; | 641 | int offset = 0; |
642 | QDateTime next = inL->getNextAlarmDateTime(& ok, &offset, latest ) ; | 642 | QDateTime next = inL->getNextAlarmDateTime(& ok, &offset, latest ) ; |
643 | if ( ok ) { | 643 | if ( ok ) { |
644 | //qDebug("OK %s",next.toString().latin1()); | 644 | //qDebug("OK %s",next.toString().latin1()); |
645 | if ( next < QDateTime::currentDateTime() ) { | 645 | if ( next < QDateTime::currentDateTime() ) { |