summaryrefslogtreecommitdiffabout
path: root/korganizer/calendarview.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/calendarview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/calendarview.cpp6
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
@@ -651,4 +651,6 @@ void CalendarView::checkAlarms()
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;
@@ -657,5 +659,5 @@ void CalendarView::checkAlarms()
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() );
@@ -833,5 +835,5 @@ void CalendarView::addAlarm(const QDateTime &qdt, const QString &noti )
if ( ! KOPrefs::instance()->mUseInternalAlarmNotification ) {
#ifndef DESKTOP_VERSION
- AlarmServer::addAlarm ( qdt,"koalarm", noti.latin1() );
+ AlarmServer::addAlarm ( qdt,"koalarm", noti.utf8() );
#endif
return;