summaryrefslogtreecommitdiffabout
path: root/libkcal
authorzautrix <zautrix>2005-06-08 09:15:20 (UTC)
committer zautrix <zautrix>2005-06-08 09:15:20 (UTC)
commit39d84e2fc3099bd5d7596e8be5dc6783826cec01 (patch) (unidiff)
treea811365972a94c65cfd4f78c802ae8e9b09d7d12 /libkcal
parent876dca14867d6a47b661c60a9c96ac3a70591d0c (diff)
downloadkdepimpi-39d84e2fc3099bd5d7596e8be5dc6783826cec01.zip
kdepimpi-39d84e2fc3099bd5d7596e8be5dc6783826cec01.tar.gz
kdepimpi-39d84e2fc3099bd5d7596e8be5dc6783826cec01.tar.bz2
rec todo fix
Diffstat (limited to 'libkcal') (more/less context) (ignore whitespace changes)
-rw-r--r--libkcal/todo.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/libkcal/todo.cpp b/libkcal/todo.cpp
index 473247a..38ba2c7 100644
--- a/libkcal/todo.cpp
+++ b/libkcal/todo.cpp
@@ -564,14 +564,17 @@ QDateTime Todo::getNextAlarmDateTime( bool * ok, int * offset, QDateTime start_d
564 564
565void Todo::checkSetCompletedFalse() 565void Todo::checkSetCompletedFalse()
566{ 566{
567 if ( !hasRecurrenceID() ) { 567 if ( !hasRecurrenceID() ) {
568 qDebug("ERROR 1 in Todo::checkSetCompletedFalse"); 568 qDebug("ERROR 1 in Todo::checkSetCompletedFalse");
569 } 569 }
570 // qDebug("Todo::checkSetCompletedFalse()"); 570 // qDebug("Todo::checkSetCompletedFalse()");
571 //qDebug("%s %s %s ",mDtStart.toString().latin1(), dtDue().toString().latin1(),mRecurrenceID.toString().latin1() ); 571 //qDebug("%s %s %s ",mDtStart.toString().latin1(), dtDue().toString().latin1(),mRecurrenceID.toString().latin1() );
572 if ( mPercentComplete == 100 && mDtStart == mRecurrenceID && QDateTime::currentDateTime() > mDtStart) { 572 if ( mPercentComplete == 100 ) {
573 qDebug("%s %s %s ",mDtStart.toString().latin1(), dtDue().toString().latin1(),mRecurrenceID.toString().latin1() ); 573 QDateTime dt = QDateTime::currentDateTime();
574 setCompleted( false ); 574 if ( dt > mDtStart && dt > mRecurrenceID ) {
575 qDebug("Todo::checkSetCompletedFalse "); 575 qDebug("start: %s --due: %s --recID: %s ",mDtStart.toString().latin1(), dtDue().toString().latin1(),mRecurrenceID.toString().latin1() );
576 setCompleted( false );
577 qDebug("Todo::checkSetCompletedFalse ");
578 }
576 } 579 }
577} 580}