summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <[email protected]>2015-10-27 16:52:00 +0100
committerDaniel Vrátil <[email protected]>2015-10-27 16:52:37 +0100
commit0617591896f3fddffe41417ef243fc290a73953d (patch)
tree1ebe4c4232e2d4e29d0e9e896e1403e6aed0e674
parentcf86e8cb0d86936ded85c3dbb3785c86770bdbce (diff)
Fix debug output in ETMPrivate:itemFetchJobDone()
The ItemFetchJob is running in EmitItemsInBatches mode, which means that IFJ::items() will always return an empty list. ITF::count() has to be used to get the item count.
-rw-r--r--akonadi/src/core/models/entitytreemodel_p.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/akonadi/src/core/models/entitytreemodel_p.cpp b/akonadi/src/core/models/entitytreemodel_p.cpp
index db97664..0c0a68d 100644
--- a/akonadi/src/core/models/entitytreemodel_p.cpp
+++ b/akonadi/src/core/models/entitytreemodel_p.cpp
@@ -1340,12 +1340,8 @@ void EntityTreeModelPrivate::itemFetchJobDone(KJob *job)
return;
}
ItemFetchJob *iJob = static_cast<ItemFetchJob *>(job);
-
qCDebug(DebugETM) << "Fetch job took " << jobTimeTracker.take(job).elapsed() << "msec";
- qCDebug(DebugETM) << "was item fetch job: items:" << iJob->items().size();
- if (!iJob->items().isEmpty()) {
- qCDebug(DebugETM) << "first item collection:" << iJob->items().at(0).parentCollection().name();
- }
+ qCDebug(DebugETM) << "was item fetch job: items:" << iJob->count();
if (!iJob->count()) {
m_collectionsWithoutItems.insert(collectionId);