-rw-r--r-- | korganizer/kotodoview.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index c23a8ee..06d40b1 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp @@ -1496,8 +1496,10 @@ void KOTodoView::displayAllFlat() mTodoListView->clear(); Todo *todo; for(todo = todoList.first(); todo; todo = todoList.next()) { - KOTodoViewItem *todoItem = new KOTodoViewItem(mTodoListView,todo,this); - mTodoMap.insert(todo,todoItem); + if ( checkTodo( todo ) ) { + KOTodoViewItem *todoItem = new KOTodoViewItem(mTodoListView,todo,this); + mTodoMap.insert(todo,todoItem); + } } resetCurrentItem(); } |