Commit 58d9e19b authored by Laurent Montel's avatar Laurent Montel 😁

It's not necessary to use setAutoDelete

Bug found by David
parent 0e5dc66c
Pipeline #35734 passed with stage
in 24 minutes and 53 seconds
......@@ -184,8 +184,7 @@ Akonadi::Collection FilterImporterAkonadi::addSubCollection(const Akonadi::Colle
newSubCollection.setParentCollection(baseCollection);
newSubCollection.setName(newCollectionPathName);
QScopedPointer<Akonadi::CollectionCreateJob> job(new Akonadi::CollectionCreateJob(newSubCollection));
job->setAutoDelete(false);
Akonadi::CollectionCreateJob *job = new Akonadi::CollectionCreateJob(newSubCollection);
if (!job->exec()) {
mInfo->alert(i18n("<b>Error:</b> Could not create folder. Reason: %1",
job->errorString()));
......
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