From 6cee1b34ffc7b3b8a0c8e1831fff0cc1af0e708a Mon Sep 17 00:00:00 2001 From: umopapisdn Date: Fri, 28 Mar 2003 11:58:29 +0000 Subject: Bugfix: (Bug #000782) Display events with no duration, unless it's an "effective event" ending at 00:00 starting at a previous day. (i.e ending at midnight) --- (limited to 'core/pim/datebook/datebookday.cpp') diff --git a/core/pim/datebook/datebookday.cpp b/core/pim/datebook/datebookday.cpp index 5d472a6..af98e06 100644 --- a/core/pim/datebook/datebookday.cpp +++ b/core/pim/datebook/datebookday.cpp @@ -309,7 +309,7 @@ void DateBookDay::getEvents() QValueListIterator 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) + if(!((ev.end().hour()==0) && (ev.end().minute()==0) && (ev.startDate()!=ev.date()))) { // Skip events ending at 00:00 starting at another day. DateBookDayWidget* w = new DateBookDayWidget( *it, this ); connect( w, SIGNAL( deleteMe( const Event & ) ), this, SIGNAL( removeEvent( const Event & ) ) ); -- cgit v0.9.0.2