author | zautrix <zautrix> | 2005-06-03 12:55:27 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-03 12:55:27 (UTC) |
commit | f0554322b2f27e1fa60dc79a5d76ef0741bf3423 (patch) (side-by-side diff) | |
tree | fa49feb527b57939d78e5ac786dfcbedd36f26ea /korganizer/koagendaview.cpp | |
parent | dd80f5bb6eee2a924748b7d0acfb4fb892f58b86 (diff) | |
download | kdepimpi-f0554322b2f27e1fa60dc79a5d76ef0741bf3423.zip kdepimpi-f0554322b2f27e1fa60dc79a5d76ef0741bf3423.tar.gz kdepimpi-f0554322b2f27e1fa60dc79a5d76ef0741bf3423.tar.bz2 |
fixes
-rw-r--r-- | korganizer/koagendaview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index b5a4199..fd9bf29 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp @@ -1227,25 +1227,25 @@ void KOAgendaView::fillAgenda() if (endY < startY) endY = startY; mAgenda->insertItem(event,currentDate,curCol,startY,endY); if (startY < mMinY[curCol]) mMinY[curCol] = startY; if (endY > mMaxY[curCol]) mMaxY[curCol] = endY; } } // ---------- [display Todos -------------- unsigned int numTodo; for (numTodo = 0; numTodo < todos.count(); ++numTodo) { Todo *todo = todos.at(numTodo); if ( ! todo->hasDueDate() && !todo->hasCompletedDate()) continue; // todo shall not be displayed if it has no date - + if ( todo->hasCompletedDate() && !KOPrefs::instance()->mShowCompletedTodoInAgenda ) continue; // ToDo items shall be displayed for the day they are due, but only showed today if they are already overdue. // Already completed items can be displayed on their original due date //if not KOPrefs::instance()->mShowTodoInAgenda, show overdue in agenda bool overdue = (!todo->isCompleted()) && (todo->dtDue() < today) && KOPrefs::instance()->mShowTodoInAgenda; bool fillIn = false; if ( todo->hasCompletedDate() && todo->completed().date() == currentDate ) fillIn = true; if ( ! fillIn && !todo->hasCompletedDate() ) fillIn = ((todo->dtDue().date() == currentDate) && !overdue) || ((currentDate == today) && overdue); if ( fillIn ) { if ( (todo->doesFloat() || overdue ) && !todo->hasCompletedDate() ) { // Todo has no due-time set or is already overdue if ( KOPrefs::instance()->mShowTodoInAgenda ) |