Commit d3c6ba90 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

ETM: consider collections that don't match mimetype filter populated

After commit 0741892f the ETM only runs ItemFetchJob for collections
that match the current mimetype filter. This caused collections that
don't match the filter (like top-level collections) to never be marked
as populated, breaking applications like korgac that check the
IsPopulatedRole of all collections in the tree.
parent be1581e9
......@@ -473,6 +473,13 @@ void EntityTreeModelPrivate::collectionsFetched(const Akonadi::Collection::List
const auto col = m_collections.value(collectionId);
if (m_mimeChecker.wantedMimeTypes().isEmpty() || m_mimeChecker.isWantedCollection(col)) {
} else {
// Consider collections that don't contain relevant mimetypes to be populated
Q_EMIT q_ptr->collectionPopulated(collectionId);
const auto idx = indexForCollection(Collection(collectionId));
dataChanged(idx, idx);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment