-rw-r--r-- | korganizer/calendarview.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 8d992b9..4b82aa8 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -650,13 +650,15 @@ void CalendarView::checkAlarms() QPtrList<Incidence> el = mCalendar->rawIncidences(); QPtrList<Incidence> al; Incidence* inL = el.first(); + QDateTime cur = QDateTime::currentDateTime().addSecs(-59); + qDebug("KO: Checking alarm until %s ", cur.toString().latin1()); while ( inL ) { bool ok = false; int offset = 0; QDateTime next = inL->getNextAlarmDateTime(& ok, &offset, latest ) ; if ( ok ) { //qDebug("OK %s",next.toString().latin1()); - if ( next < QDateTime::currentDateTime() ) { + if ( next < cur ) { al.append( inL ); //qDebug("found missed alarm: %s ", inL->summary().latin1() ); } @@ -832,7 +834,7 @@ void CalendarView::addAlarm(const QDateTime &qdt, const QString ¬i ) //qDebug("+++++addAlarm %s %s ", qdt.toString().latin1() , noti.latin1() ); if ( ! KOPrefs::instance()->mUseInternalAlarmNotification ) { #ifndef DESKTOP_VERSION - AlarmServer::addAlarm ( qdt,"koalarm", noti.latin1() ); + AlarmServer::addAlarm ( qdt,"koalarm", noti.utf8() ); #endif return; } |