author | umopapisdn <umopapisdn> | 2003-03-23 19:55:23 (UTC) |
---|---|---|
committer | umopapisdn <umopapisdn> | 2003-03-23 19:55:23 (UTC) |
commit | dfa17505b14011b50822d50c925cc6aa0299b1b4 (patch) (side-by-side diff) | |
tree | 1445d0e8dcc4762cc93d666007564af0525aac37 | |
parent | 46c09d5732bcac4de2be5dfbf17bee054aba9478 (diff) | |
download | opie-dfa17505b14011b50822d50c925cc6aa0299b1b4.zip opie-dfa17505b14011b50822d50c925cc6aa0299b1b4.tar.gz opie-dfa17505b14011b50822d50c925cc6aa0299b1b4.tar.bz2 |
Bugfix: (bug #0000211) Events ending at midnight shouldn't be displayed at the following day. Fix for weekview.
-rw-r--r-- | core/pim/datebook/datebookweek.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/core/pim/datebook/datebookweek.cpp b/core/pim/datebook/datebookweek.cpp index e30c776..5bbf86a 100644 --- a/core/pim/datebook/datebookweek.cpp +++ b/core/pim/datebook/datebookweek.cpp @@ -136,12 +136,14 @@ void DateBookWeekView::initNames() void DateBookWeekView::showEvents( QValueList<EffectiveEvent> &ev ) { - items.clear(); - QValueListIterator<EffectiveEvent> it; - for ( it = ev.begin(); it != ev.end(); ++it ) { - DateBookWeekItem *i = new DateBookWeekItem( *it ); - positionItem( i ); - items.append( i ); - } - viewport()->update(); + items.clear(); + QValueListIterator<EffectiveEvent> it; + for ( it = ev.begin(); it != ev.end(); ++it ) { + DateBookWeekItem *i = new DateBookWeekItem( *it ); + if(!(i->event().end().hour()==i->event().start().hour() && i->event().end().minute()==i->event().start().minute())) { // Skip effective events with no duration. (i.e ending at 00:00) + positionItem( i ); + items.append( i ); + } + } + viewport()->update(); } |