-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 | |||
@@ -617,33 +617,33 @@ CalendarView::~CalendarView() | |||
617 | // kdDebug() << "~CalendarView()" << endl; | 617 | // kdDebug() << "~CalendarView()" << endl; |
618 | //qDebug("CalendarView::~CalendarView() "); | 618 | //qDebug("CalendarView::~CalendarView() "); |
619 | delete mDialogManager; | 619 | delete mDialogManager; |
620 | delete mViewManager; | 620 | delete mViewManager; |
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() ) { |
646 | al.append( inL ); | 646 | al.append( inL ); |
647 | qDebug("found missed alarm: %s ", inL->summary().latin1() ); | 647 | qDebug("found missed alarm: %s ", inL->summary().latin1() ); |
648 | } | 648 | } |
649 | } | 649 | } |