Commit d5c30f4f authored by Christian Mollekopf's avatar Christian Mollekopf Committed by Sandro Knauß
Browse files

CollectionView: fixed referencing of person folders.

(cherry picked from commit 868d781e37e7b14406b6b1a62c3e04ebb5d8c34c)
parent c5003d22
...@@ -408,10 +408,10 @@ void Controller::onPersonEnabled(bool enabled, const Person& person) ...@@ -408,10 +408,10 @@ void Controller::onPersonEnabled(bool enabled, const Person& person)
Akonadi::Collection rootCollection(person.rootCollection); Akonadi::Collection rootCollection(person.rootCollection);
if (rootCollection.isValid()) { if (rootCollection.isValid()) {
//Reference the persons collections if available //Reference the persons collections if available
//We have to include all mimetypes since mimetypes are not available yet (they will be synced once the collectoins are referenced)
Akonadi::CollectionFetchJob *fetchJob = new Akonadi::CollectionFetchJob(rootCollection, Akonadi::CollectionFetchJob::Recursive, this); Akonadi::CollectionFetchJob *fetchJob = new Akonadi::CollectionFetchJob(rootCollection, Akonadi::CollectionFetchJob::Recursive, this);
fetchJob->setProperty("enable", enabled); fetchJob->setProperty("enable", enabled);
fetchJob->fetchScope().setListFilter(Akonadi::CollectionFetchScope::NoFilter); fetchJob->fetchScope().setListFilter(Akonadi::CollectionFetchScope::NoFilter);
fetchJob->fetchScope().setContentMimeTypes(QStringList() << QLatin1String("text/calendar"));
connect(fetchJob, SIGNAL(result(KJob*)), this, SLOT(onPersonCollectionsFetched(KJob*))); connect(fetchJob, SIGNAL(result(KJob*)), this, SLOT(onPersonCollectionsFetched(KJob*)));
} }
} else { } else {
......
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