author | umopapisdn <umopapisdn> | 2003-03-23 20:33:00 (UTC) |
---|---|---|
committer | umopapisdn <umopapisdn> | 2003-03-23 20:33:00 (UTC) |
commit | b5606a63c9f3524f9475b6ac79f0b6bcc7162fa6 (patch) (side-by-side diff) | |
tree | d4c7bd2dbf63858d3ac70926514d91a4bd6d63e0 | |
parent | dfa17505b14011b50822d50c925cc6aa0299b1b4 (diff) | |
download | opie-b5606a63c9f3524f9475b6ac79f0b6bcc7162fa6.zip opie-b5606a63c9f3524f9475b6ac79f0b6bcc7162fa6.tar.gz opie-b5606a63c9f3524f9475b6ac79f0b6bcc7162fa6.tar.bz2 |
Bugfix: (bug #0000211) Events ending at mat the following day. Fix for dayview.
-rw-r--r-- | core/pim/datebook/datebookday.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/pim/datebook/datebookday.cpp b/core/pim/datebook/datebookday.cpp index a6a1be3..42f026a 100644 --- a/core/pim/datebook/datebookday.cpp +++ b/core/pim/datebook/datebookday.cpp @@ -302,25 +302,27 @@ void DateBookDay::redraw() } void DateBookDay::getEvents() { widgetList.clear(); - QValueList<EffectiveEvent> eventList = db->getEffectiveEvents( currDate, - currDate ); + QValueList<EffectiveEvent> eventList = db->getEffectiveEvents( currDate, currDate ); QValueListIterator<EffectiveEvent> it; for ( it = eventList.begin(); it != eventList.end(); ++it ) { + EffectiveEvent ev=*it; + if(!(ev.end().hour()==ev.start().hour() && ev.end().minute()==ev.start().minute())) { // Skip effective events with no duration. (i.e ending at 00:00) DateBookDayWidget* w = new DateBookDayWidget( *it, this ); connect( w, SIGNAL( deleteMe( const Event & ) ), this, SIGNAL( removeEvent( const Event & ) ) ); connect( w, SIGNAL( editMe( const Event & ) ), this, SIGNAL( editEvent( const Event & ) ) ); connect( w, SIGNAL( beamMe( const Event & ) ), this, SIGNAL( beamEvent( const Event & ) ) ); widgetList.append( w ); } + } } static int place( const DateBookDayWidget *item, bool *used, int maxn ) { int place = 0; |