summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-10-06 13:37:11 +0200
committerMontel Laurent <[email protected]>2017-10-06 13:37:19 +0200
commit01e7b9b80c7adb5a6ea6dccb934bd923d4fb19e3 (patch)
tree3acf57e0c1c0ec5a4e4c426b27577d29e680d29c
parenta8e19e0fbe4b2aab89246716cb63e3ef03ba977c (diff)
Simplify check
-rw-r--r--agents/newmailnotifier/newmailnotifierselectcollectionwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/agents/newmailnotifier/newmailnotifierselectcollectionwidget.cpp b/agents/newmailnotifier/newmailnotifierselectcollectionwidget.cpp
index e3db8d6..caf7549 100644
--- a/agents/newmailnotifier/newmailnotifierselectcollectionwidget.cpp
+++ b/agents/newmailnotifier/newmailnotifierselectcollectionwidget.cpp
@@ -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);