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/koagenda.cpp | |
parent | dd80f5bb6eee2a924748b7d0acfb4fb892f58b86 (diff) | |
download | kdepimpi-f0554322b2f27e1fa60dc79a5d76ef0741bf3423.zip kdepimpi-f0554322b2f27e1fa60dc79a5d76ef0741bf3423.tar.gz kdepimpi-f0554322b2f27e1fa60dc79a5d76ef0741bf3423.tar.bz2 |
fixes
-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 @@ -1563,48 +1563,50 @@ void KOAgenda::updateTodo( Todo * todo, int days, bool remove) QPtrList<KOAgendaItem> oldconflictItems = item->conflictItems(); KOAgendaItem *itemit; //globalFlagBlockAgendaItemPaint = 1; for ( itemit=oldconflictItems.first(); itemit != 0; itemit=oldconflictItems.next() ) { if ( itemit != item ) placeSubCells(itemit); } qApp->processEvents(); //globalFlagBlockAgendaItemPaint = 0; for ( itemit=oldconflictItems.first(); itemit != 0; itemit=oldconflictItems.next() ) { globalFlagBlockAgendaItemUpdate = 0; if ( itemit != item ) itemit->repaintMe(); globalFlagBlockAgendaItemUpdate = 1; itemit->repaint(); } blockSignals( false ); } if ( remove ) { //qDebug("remove****************************************** "); return; } + if ( todo->hasCompletedDate() && !KOPrefs::instance()->mShowCompletedTodoInAgenda ) + return; //qDebug("updateTodo+++++++++++++++++++++++++++++++++++++ "); bool overdue = (!todo->isCompleted()) && (todo->dtDue() < QDate::currentDate())&& ( KOPrefs::instance()->mShowTodoInAgenda ); QDate currentDate; QDateTime dt; if ( todo->hasCompletedDate() ) dt = todo->completed(); else dt = todo->dtDue(); if ( overdue ) { currentDate = QDate::currentDate(); days += todo->dtDue().date().daysTo( currentDate ); } else currentDate = dt.date(); if (( todo->doesFloat() || overdue) && !todo->hasCompletedDate() ) { if ( ! mAllDayMode ) return; // aldayagenda globalFlagBlockAgendaItemPaint = 1; item = insertAllDayItem(todo, currentDate,days, days); item->show(); } else { |