-rw-r--r-- | core/pim/todo/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index 77cbe17..c5cedc6 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp | |||
@@ -696,25 +696,25 @@ void MainWindow::slotComplete( int uid ) { | |||
696 | void MainWindow::slotComplete( const OTodo& todo ) { | 696 | void MainWindow::slotComplete( const OTodo& todo ) { |
697 | OTodo to = todo; | 697 | OTodo to = todo; |
698 | to.setCompleted( !to.isCompleted() ); | 698 | to.setCompleted( !to.isCompleted() ); |
699 | to.setCompletedDate( QDate::currentDate() ); | 699 | to.setCompletedDate( QDate::currentDate() ); |
700 | 700 | ||
701 | /* | 701 | /* |
702 | * if the item does recur | 702 | * if the item does recur |
703 | * we need to spin it off | 703 | * we need to spin it off |
704 | * and update the items duedate to the next | 704 | * and update the items duedate to the next |
705 | * possible recurrance of this item... | 705 | * possible recurrance of this item... |
706 | * the spinned off one will loose the | 706 | * the spinned off one will loose the |
707 | */ | 707 | */ |
708 | if ( to.recurrence().doesRecur() && to.isCompleted() ) { | 708 | if ( to.hasRecurrence() && to.isCompleted() ) { |
709 | OTodo to2( to ); | 709 | OTodo to2( to ); |
710 | 710 | ||
711 | /* the spinned off one won't recur anymore */ | 711 | /* the spinned off one won't recur anymore */ |
712 | to.setRecurrence( ORecur() ); | 712 | to.setRecurrence( ORecur() ); |
713 | 713 | ||
714 | ORecur rec = to2.recurrence(); | 714 | ORecur rec = to2.recurrence(); |
715 | rec.setStart( to.dueDate() ); | 715 | rec.setStart( to.dueDate() ); |
716 | to2.setRecurrence( rec ); | 716 | to2.setRecurrence( rec ); |
717 | /* | 717 | /* |
718 | * if there is a next occurence | 718 | * if there is a next occurence |
719 | * from the duedate of the last recurrance | 719 | * from the duedate of the last recurrance |
720 | */ | 720 | */ |