Commit 01e7b9b8 authored by Laurent Montel's avatar Laurent Montel 😁

Simplify check

parent a8e19e0f
......@@ -214,7 +214,7 @@ void NewMailNotifierSelectCollectionWidget::updateCollectionsRecursive()
collection.removeAttribute<Akonadi::NewMailNotifierAttribute>();
modifyJob = new Akonadi::CollectionModifyJob(collection);
modifyJob->setProperty("AttributeAdded", true);
} else if (!selected && (!attr || (attr && !attr->ignoreNewMail()))) {
} else if (!selected && (!attr || !attr->ignoreNewMail())) {
attr = collection.attribute<Akonadi::NewMailNotifierAttribute>(Akonadi::Collection::AddIfMissing);
attr->setIgnoreNewMail(true);
modifyJob = new Akonadi::CollectionModifyJob(collection);
......
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