-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 | |||
@@ -700,17 +700,17 @@ void MainWindow::slotComplete( const OTodo& todo ) { | |||
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 ); |