summaryrefslogtreecommitdiff
authorzecke <zecke>2002-10-07 11:55:17 (UTC)
committer zecke <zecke>2002-10-07 11:55:17 (UTC)
commita513a88322196c8caa21b00b83d454feae84200c (patch) (side-by-side diff)
treeedf3ec1ed398f320eb067a69726277f0ea4ee089
parentf11d4bda64b58abfebf77485d5d77143a10dc8c9 (diff)
downloadopie-a513a88322196c8caa21b00b83d454feae84200c.zip
opie-a513a88322196c8caa21b00b83d454feae84200c.tar.gz
opie-a513a88322196c8caa21b00b83d454feae84200c.tar.bz2
Fix not showing completed tasks
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/tableview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/pim/todo/tableview.cpp b/core/pim/todo/tableview.cpp
index 39f0d72..8cd2e7e 100644
--- a/core/pim/todo/tableview.cpp
+++ b/core/pim/todo/tableview.cpp
@@ -150,9 +150,9 @@ void TableView::setTodos( OTodoAccess::List::Iterator it,
setUpdatesEnabled( false );
viewport()->setUpdatesEnabled( false );
clear();
QString currentCat = todoWindow()->currentCategory();
- bool showCompleted = todoWindow()->currentCatId();
+ bool showCompleted = todoWindow()->showCompleted();
bool showOverDue = todoWindow()->showOverDue();
qWarning( "Current Category:" + todoWindow()->currentCategory() );
int id = todoWindow()->currentCatId();
QTime t;
@@ -167,8 +167,9 @@ void TableView::setTodos( OTodoAccess::List::Iterator it,
continue;
}
/* the item is completed but we shouldn't show it */
if ( !showCompleted && todo.isCompleted() ) {
+ qWarning("isCompleted ");
continue;
}
/* the item is not overdue but we should only show overdue */
if ( showOverDue && !todo.isOverdue() ) {