-rw-r--r-- | korganizer/koagenda.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index cdeeac5..2a2acb1 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp | |||
@@ -1584,6 +1584,8 @@ void KOAgenda::updateTodo( Todo * todo, int days, bool remove) | |||
1584 | //qDebug("remove****************************************** "); | 1584 | //qDebug("remove****************************************** "); |
1585 | return; | 1585 | return; |
1586 | } | 1586 | } |
1587 | if ( todo->hasCompletedDate() && !KOPrefs::instance()->mShowCompletedTodoInAgenda ) | ||
1588 | return; | ||
1587 | //qDebug("updateTodo+++++++++++++++++++++++++++++++++++++ "); | 1589 | //qDebug("updateTodo+++++++++++++++++++++++++++++++++++++ "); |
1588 | bool overdue = (!todo->isCompleted()) && (todo->dtDue() < QDate::currentDate())&& ( KOPrefs::instance()->mShowTodoInAgenda ); | 1590 | bool overdue = (!todo->isCompleted()) && (todo->dtDue() < QDate::currentDate())&& ( KOPrefs::instance()->mShowTodoInAgenda ); |
1589 | QDate currentDate; | 1591 | QDate currentDate; |