-rw-r--r-- | core/pim/today/plugins/datebook/datebookpluginwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp index 781e3a4..1970654 100644 --- a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp +++ b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp | |||
@@ -82,25 +82,25 @@ void DatebookPluginWidget::refresh() { | |||
82 | */ | 82 | */ |
83 | void DatebookPluginWidget::getDates() { | 83 | void DatebookPluginWidget::getDates() { |
84 | 84 | ||
85 | QDate date = QDate::currentDate(); | 85 | QDate date = QDate::currentDate(); |
86 | QValueList<EffectiveEvent> list = db->getEffectiveEvents( date, date.addDays( m_moreDays ) ); | 86 | QValueList<EffectiveEvent> list = db->getEffectiveEvents( date, date.addDays( m_moreDays ) ); |
87 | qBubbleSort( list ); | 87 | qBubbleSort( list ); |
88 | int count = 0; | 88 | int count = 0; |
89 | 89 | ||
90 | if ( list.count() > 0 ) { | 90 | if ( list.count() > 0 ) { |
91 | 91 | ||
92 | for ( QValueList<EffectiveEvent>::ConstIterator it = list.begin(); it != list.end(); ++it ) { | 92 | for ( QValueList<EffectiveEvent>::ConstIterator it = list.begin(); it != list.end(); ++it ) { |
93 | 93 | ||
94 | if ( count <= m_max_lines_meet ) { | 94 | if ( count < m_max_lines_meet ) { |
95 | if ( !m_onlyLater ) { | 95 | if ( !m_onlyLater ) { |
96 | count++; | 96 | count++; |
97 | DateBookEvent *l = new DateBookEvent( *it, this, m_show_location, m_show_notes ); | 97 | DateBookEvent *l = new DateBookEvent( *it, this, m_show_location, m_show_notes ); |
98 | m_eventsList.append( l ); | 98 | m_eventsList.append( l ); |
99 | l->show(); | 99 | l->show(); |
100 | QObject::connect ( l, SIGNAL( editEvent( const Event & ) ), l, SLOT( editEventSlot( const Event & ) ) ); | 100 | QObject::connect ( l, SIGNAL( editEvent( const Event & ) ), l, SLOT( editEventSlot( const Event & ) ) ); |
101 | } else if ( QDateTime::currentDateTime() <= (*it).event().end() || (*it).event().start().date() != date ) { | 101 | } else if ( QDateTime::currentDateTime() <= (*it).event().end() || (*it).event().start().date() != date ) { |
102 | count++; | 102 | count++; |
103 | // show only later appointments | 103 | // show only later appointments |
104 | DateBookEvent *l = new DateBookEvent( *it, this, m_show_location, m_show_notes ); | 104 | DateBookEvent *l = new DateBookEvent( *it, this, m_show_location, m_show_notes ); |
105 | m_eventsList.append( l ); | 105 | m_eventsList.append( l ); |
106 | l->show(); | 106 | l->show(); |