[pim/kdepim-runtime] agents/newmailnotifier: Fix true/false otherwise qcDebug is not ok

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 0f05107022d310143b19d48d85b6aa7652055720 by Laurent Montel.
Committed on 16/08/2026 at 11:25.
Pushed by mlaurent into branch 'master'.

Fix true/false otherwise qcDebug is not ok

M  +2    -2    agents/newmailnotifier/newmailnotifierselectcollectionwidget.cpp

https://invent.kde.org/pim/kdepim-runtime/-/commit/0f05107022d310143b19d48d85b6aa7652055720

diff --git a/agents/newmailnotifier/newmailnotifierselectcollectionwidget.cpp b/agents/newmailnotifier/newmailnotifierselectcollectionwidget.cpp
index 97214a833..359117d2a 100644
--- a/agents/newmailnotifier/newmailnotifierselectcollectionwidget.cpp
+++ b/agents/newmailnotifier/newmailnotifierselectcollectionwidget.cpp
@@ -193,12 +193,12 @@ void NewMailNotifierSelectCollectionWidget::updateCollectionsRecursive()
         if (selected && attr && attr->ignoreNewMail()) {
             collection.removeAttribute<Akonadi::NewMailNotifierAttribute>();
             modifyJob = new Akonadi::CollectionModifyJob(collection);
-            modifyJob->setProperty("AttributeAdded", true);
+            modifyJob->setProperty("AttributeAdded", false);
         } else if (!selected && (!attr || !attr->ignoreNewMail())) {
             attr = collection.attribute<Akonadi::NewMailNotifierAttribute>(Akonadi::Collection::AddIfMissing);
             attr->setIgnoreNewMail(true);
             modifyJob = new Akonadi::CollectionModifyJob(collection);
-            modifyJob->setProperty("AttributeAdded", false);
+            modifyJob->setProperty("AttributeAdded", true);
         }
 
         if (modifyJob) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.