Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > cf746698214707f972e669b661d0ae59 > files > 36

kdepim4-4.14.10-1.3.mga5.src.rpm

From 57c96435ff904aeaaccf1a30ec562380e244758c Mon Sep 17 00:00:00 2001
From: Sergio Martins <smartins@kde.org>
Date: Mon, 8 Feb 2016 12:03:41 +0000
Subject: [PATCH 36/74] Don't query for entityTreeModel() twice

---
 korganizer/akonadicollectionview.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/korganizer/akonadicollectionview.cpp b/korganizer/akonadicollectionview.cpp
index 351c9ab184..02ece98f02 100644
--- a/korganizer/akonadicollectionview.cpp
+++ b/korganizer/akonadicollectionview.cpp
@@ -643,7 +643,7 @@ void AkonadiCollectionView::checkNewCalendar( const QModelIndex &parent, int beg
 {
   // HACK: Check newly created calendars
   Akonadi::EntityTreeModel *etm = entityTreeModel();
-  if ( etm && entityTreeModel()->isCollectionTreeFetched() ) {
+  if ( etm && etm->isCollectionTreeFetched() ) {
     for( int row=begin; row<=end; ++row ) {
       QModelIndex index = mCollectionView->model()->index( row, 0, parent );
       if ( index.isValid() )
-- 
2.14.1