summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <dvratil@kde.org>2016-09-16 11:41:39 (GMT)
committerDaniel Vrátil <dvratil@kde.org>2016-09-16 11:41:39 (GMT)
commitd9f3ff0465abca616971567ebd042b224891d2fc (patch)
tree579ccbc3744f5bb6344d066ca89c78bbfe9650ab
parent48f07eae8ca198dfc6991a16edd96f0001ca6d5f (diff)
[ETM] Disable change recording it Monitor is a CR
This is in alignment with previous behaviour.
-rw-r--r--src/core/models/entitytreemodel_p.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/models/entitytreemodel_p.cpp b/src/core/models/entitytreemodel_p.cpp
index 9266025..13ab9d3 100644
--- a/src/core/models/entitytreemodel_p.cpp
+++ b/src/core/models/entitytreemodel_p.cpp
@@ -31,6 +31,7 @@
#include "agentmanager.h"
#include "agenttype.h"
#include "monitor.h"
+#include "changerecorder.h"
#include "collectioncopyjob.h"
#include "collectionfetchjob.h"
#include "collectionfetchscope.h"
@@ -108,6 +109,10 @@ void EntityTreeModelPrivate::init(Monitor *monitor)
m_rootCollectionDisplayName = QStringLiteral("[*]");
+ if (Akonadi::ChangeRecorder *cr = qobject_cast<Akonadi::ChangeRecorder*>(m_monitor)) {
+ cr->setChangeRecordingEnabled(false);
+ }
+
m_includeStatistics = true;
m_monitor->fetchCollectionStatistics(true);
m_monitor->collectionFetchScope().setAncestorRetrieval(Akonadi::CollectionFetchScope::All);