Commit ac51d64b authored by Christian Mollekopf's avatar Christian Mollekopf
Browse files

CollectionView: fixed referencing of person folders.

parent 3ac8aee4
......@@ -408,10 +408,10 @@ void Controller::onPersonEnabled(bool enabled, const Person& person)
Akonadi::Collection rootCollection(person.rootCollection);
if (rootCollection.isValid()) {
//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);
fetchJob->setProperty("enable", enabled);
fetchJob->fetchScope().setListFilter(Akonadi::CollectionFetchScope::NoFilter);
fetchJob->fetchScope().setContentMimeTypes(QStringList() << QLatin1String("text/calendar"));
connect(fetchJob, SIGNAL(result(KJob*)), this, SLOT(onPersonCollectionsFetched(KJob*)));
}
} 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