[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdepim/kontact/plugins/korganizer
From:       Allen Winter <winter () kde ! org>
Date:       2006-02-07 18:09:31
Message-ID: 1139335771.823805.18385.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 506840 by winterz:

Fix sorting in the appointments summary.
This bug was already fixed in trunk, but I forgot to backport.
KDE 3.5.2 will have the fix.

BUGS: 120765


 M  +11 -3     summarywidget.cpp  


--- branches/KDE/3.5/kdepim/kontact/plugins/korganizer/summarywidget.cpp #506839:506840
@@ -96,9 +96,17 @@
   for ( dt=QDate::currentDate();
         dt<=QDate::currentDate().addDays( days - 1 );
         dt=dt.addDays(1) ) {
-    KCal::Event::List events = mCalendar->events( dt,
-                                                  KCal::EventSortStartDate,
-                                                  KCal::SortDirectionAscending );
+    KCal::Event::List events = mCalendar->events( dt );
+
+    // sort the events for this date by summary
+    events = KCal::Calendar::sortEvents( &events,
+                                         KCal::EventSortSummary,
+                                         KCal::SortDirectionAscending );
+    // sort the events for this date by start date
+    events = KCal::Calendar::sortEvents( &events,
+                                         KCal::EventSortStartDate,
+                                         KCal::SortDirectionAscending );
+
     KCal::Event *ev;
     KCal::Event::List::ConstIterator it;
     for ( it=events.begin(); it!=events.end(); ++it ) {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic