Commit b570e279 authored by David Faure's avatar David Faure
Browse files

Fix assert in CollectionFetchJob when cols is empty.

If Akonadi::PersistentSearchAttribute::queryCollections() returns
an empty list of collections, this code would assert.

REVIEW: 128347
parent 6e967df4
......@@ -85,6 +85,9 @@ void SearchCollectionIndexingWarning::setCollection(const Akonadi::Collection &c
Q_FOREACH (qint64 col, attr->queryCollections()) {
if (cols.isEmpty()) {
// First retrieve the top-level collections
Akonadi::CollectionFetchJob *fetch = fetchCollections(cols, false);
Supports Markdown
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