From kde-commits Mon Jan 17 10:18:41 2011 From: Stephen Kelly Date: Mon, 17 Jan 2011 10:18:41 +0000 To: kde-commits Subject: KDE/kdepimlibs/akonadi Message-Id: <20110117101841.5725DAC8B5 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129525954703728 SVN commit 1215020 by skelly: When a top level collection is fetched, fetch its child items. M +3 -0 entitytreemodel_p.cpp --- trunk/KDE/kdepimlibs/akonadi/entitytreemodel_p.cpp #1215019:1215020 @@ -1327,6 +1327,9 @@ q->endInsertRows(); + if ( m_itemPopulation == EntityTreeModel::ImmediatePopulation ) + fetchItems(collection); + CollectionFetchJob *job = new CollectionFetchJob( collection, CollectionFetchJob::FirstLevel, m_session ); job->fetchScope().setIncludeUnsubscribed( m_includeUnsubscribed ); job->fetchScope().setIncludeStatistics( m_includeStatistics );