summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kotodoview.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp
index c5b9a21..03a8f1c 100644
--- a/korganizer/kotodoview.cpp
+++ b/korganizer/kotodoview.cpp
@@ -691,6 +691,10 @@ bool KOTodoView::checkTodo( Todo * todo )
if ( !KOPrefs::instance()->mShowCompletedTodo && todo->isCompleted() )
return false;
+ if ( !todo->isCompleted() ) {
+ if ( todo->hasDueDate() && todo->dtDue().date() <= QDate::currentDate() )
+ return true;
+ }
if ( KOPrefs::instance()->mHideNonStartedTodos && mNavigator ) {
if ( todo->hasStartDate() )
if ( mNavigator->selectedDates().last() < todo->dtStart().date() )