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

List:       kde-commits
Subject:    KDE/kdepim/calendarviews/agenda
From:       Sergio Luis Martins <iamsergio () gmail ! com>
Date:       2010-08-30 12:41:37
Message-ID: 20100830124137.8F830AC857 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1169969 by smartins:

Don't update event indicators, marcus bains, holiday mask and agenda columns if dates didn't change

 M  +5 -3      agendaview.cpp  


--- trunk/KDE/kdepim/calendarviews/agenda/agendaview.cpp #1169968:1169969
@@ -1508,13 +1508,11 @@
 
 void AgendaView::fillAgenda()
 {
-  kDebug();
   if ( changes() == NothingChanged ) {
     return;
   }
+  kDebug();
 
-  setChanges( NothingChanged );
-
   /* Remember the item Ids of the selected items. In case one of the
    * items was deleted and re-added, we want to reselect it. */
   const Akonadi::Item::Id selectedAgendaId = d->mAgenda->lastSelectedItemId();
@@ -1523,6 +1521,7 @@
   enableAgendaUpdate( true );
   clearView();
 
+  if ( changes().testFlag( DatesChanged ) ) {
   d->mAllDayAgenda->changeColumns( d->mSelectedDates.count() );
   d->mAgenda->changeColumns( d->mSelectedDates.count() );
   d->mEventIndicatorTop->changeColumns( d->mSelectedDates.count() );
@@ -1535,7 +1534,10 @@
   d->mMaxY.resize( d->mSelectedDates.count() );
 
   d->mAgenda->setDateList( d->mSelectedDates );
+  }
 
+  setChanges( NothingChanged );
+
   bool somethingReselected = false;
   const Akonadi::Item::List incidences = calendar() ?
                                          calendar()->incidences() :
[prev in list] [next in list] [prev in thread] [next in thread] 

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