From 858b047efb5627824438cb3877e7bec0cebb3751 Mon Sep 17 00:00:00 2001 From: zautrix Date: Fri, 03 Jun 2005 23:10:45 +0000 Subject: fixxx --- (limited to 'libkcal/todo.cpp') diff --git a/libkcal/todo.cpp b/libkcal/todo.cpp index d7431c7..473247a 100644 --- a/libkcal/todo.cpp +++ b/libkcal/todo.cpp @@ -515,7 +515,7 @@ void Todo::setPercentComplete(int v) mHasCompletedDate = false; updated(); } -QDateTime Todo::getNextAlarmDateTime( bool * ok, int * offset ) const +QDateTime Todo::getNextAlarmDateTime( bool * ok, int * offset, QDateTime start_dt ) const { if ( isCompleted() || ! hasDueDate() || cancelled() ) { *ok = false; @@ -551,7 +551,7 @@ QDateTime Todo::getNextAlarmDateTime( bool * ok, int * offset ) const } } if ( enabled ) { - if ( alarmStart > QDateTime::currentDateTime() ) { + if ( alarmStart > start_dt ) { *ok = true; * offset = off; return alarmStart; -- cgit v0.9.0.2