From 6b6a28919908134ccbb3badcb24c2dcae0d426a5 Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 20 Sep 2004 15:25:04 +0000 Subject: Several bugfixes --- (limited to 'libkcal/incidence.cpp') diff --git a/libkcal/incidence.cpp b/libkcal/incidence.cpp index 56c9801..55ac6d4 100644 --- a/libkcal/incidence.cpp +++ b/libkcal/incidence.cpp @@ -590,8 +590,12 @@ QDateTime Incidence::getNextOccurence( const QDateTime& dt, bool* ok ) const } else { if ( hasStartDate () ) { incidenceStart = dtStart(); - - } + } + if ( type() =="Todo" ) { + if ( ((Todo*)this)->hasDueDate() ) + incidenceStart = ((Todo*)this)->dtDue(); + + } } if ( incidenceStart > dt ) *ok = true; -- cgit v0.9.0.2