author | zautrix <zautrix> | 2005-02-22 22:28:12 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-22 22:28:12 (UTC) |
commit | 87a2f1a301beae2a8550c340348741c69f0ac1dd (patch) (side-by-side diff) | |
tree | 5fd29a75f50da5ef37a01097c12997a18c56543d /korganizer/koagendaview.cpp | |
parent | 688723b6cd545ad1fa390d98a74680e912578fe8 (diff) | |
download | kdepimpi-87a2f1a301beae2a8550c340348741c69f0ac1dd.zip kdepimpi-87a2f1a301beae2a8550c340348741c69f0ac1dd.tar.gz kdepimpi-87a2f1a301beae2a8550c340348741c69f0ac1dd.tar.bz2 |
todo fixes
-rw-r--r-- | korganizer/koagendaview.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index 4ff6899..db66413 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp @@ -1001,16 +1001,10 @@ void KOAgendaView::updateEventDates(KOAgendaItem *item, int type) } else if ( item->incidence()->type() == "Todo" ) { Todo* to = static_cast<Todo*>(item->incidence()); - int len = 0; - if ( to->hasStartDate() && to->hasDueDate() ) - len = to->dtStart().secsTo( to->dtDue()); to->setDtDue(endDt); if ( to->hasStartDate() ) { - if ( len>0 ) - to->setDtStart(to->dtDue().addSecs( -len )); - else - if (to->dtStart() > to->dtDue() ) - to->setDtStart(to->dtDue().addDays( -3 )); + if (to->dtStart() >= to->dtDue() ) + to->setDtStart(to->dtDue().addDays( -2 )); } } |