File r905612.diff of Package kdepim4

Subject: korganizer: fix slow switching calendar views
From: wstephenson@suse.de
Bug: kde#170993
Patch-upstream: 905612
--- korganizer/calendarview.h	(revision 905611)
+++ korganizer/calendarview.h	(revision 905612)
@@ -443,7 +443,7 @@ class KORGANIZERPRIVATE_EXPORT CalendarV
 
     void editCanceled( Incidence * );
 
-    void updateView( const QDate &start, const QDate &end );
+    void updateView( const QDate &start, const QDate &end, const bool updateTodos );
     void updateView();
 
     void updateUnmanagedViews();
--- korganizer/calendarview.cpp	(revision 905611)
+++ korganizer/calendarview.cpp	(revision 905612)
@@ -797,9 +797,11 @@ void CalendarView::changeIncidenceDispla
   }
 }
 
-void CalendarView::updateView( const QDate &start, const QDate &end )
+void CalendarView::updateView( const QDate &start, const QDate &end, const bool updateTodos = true )
 {
-  mTodoList->updateView();
+  if ( updateTodos )
+    mTodoList->updateView();
+
   mViewManager->updateView( start, end );
   mDateNavigator->updateView();
 }
@@ -1671,7 +1673,7 @@ void CalendarView::checkClipboard()
 void CalendarView::showDates( const DateList &selectedDates )
 {
   if ( mViewManager->currentView() ) {
-    updateView( selectedDates.first(), selectedDates.last() );
+    updateView( selectedDates.first(), selectedDates.last(), false );
   } else {
     mViewManager->showAgendaView();
   }
Index: korganizer/calendarview.h
===================================================================
Index: korganizer/calendarview.cpp
===================================================================
openSUSE Build Service is sponsored by