-rw-r--r-- | libkcal/incidence.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libkcal/incidence.cpp b/libkcal/incidence.cpp index 56c9801..55ac6d4 100644 --- a/libkcal/incidence.cpp +++ b/libkcal/incidence.cpp @@ -592,4 +592,8 @@ QDateTime Incidence::getNextOccurence( const QDateTime& dt, bool* ok ) const incidenceStart = dtStart(); - - } + } + if ( type() =="Todo" ) { + if ( ((Todo*)this)->hasDueDate() ) + incidenceStart = ((Todo*)this)->dtDue(); + + } } |