diff --git a/src/akonadi/akonadimonitorimpl.cpp b/src/akonadi/akonadimonitorimpl.cpp --- a/src/akonadi/akonadimonitorimpl.cpp +++ b/src/akonadi/akonadimonitorimpl.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include "akonadi/akonadiapplicationselectedattribute.h" #include "akonadi/akonaditimestampattribute.h" @@ -43,6 +44,7 @@ { AttributeFactory::registerAttribute(); AttributeFactory::registerAttribute(); + AttributeFactory::registerAttribute(); m_monitor->fetchCollection(true); m_monitor->setCollectionMonitored(Akonadi::Collection::root()); @@ -66,8 +68,13 @@ itemScope.fetchAllAttributes(); itemScope.setFetchTags(true); itemScope.tagFetchScope().setFetchIdOnly(false); + itemScope.tagFetchScope().fetchAttribute(); itemScope.setAncestorRetrieval(ItemFetchScope::All); m_monitor->setItemFetchScope(itemScope); + auto tagFetchScope = m_monitor->tagFetchScope(); + tagFetchScope.setFetchIdOnly(false); + tagFetchScope.fetchAttribute(); + m_monitor->setTagFetchScope(tagFetchScope); connect(m_monitor, &Akonadi::Monitor::itemAdded, this, &MonitorImpl::itemAdded); connect(m_monitor, &Akonadi::Monitor::itemRemoved, this, &MonitorImpl::itemRemoved);