[pim/kdepim-runtime] agents/newmailnotifier: Don't add empty label button

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

Don't add empty label button

M  +4    -2    agents/newmailnotifier/specialnotifierjob.cpp

https://invent.kde.org/pim/kdepim-runtime/-/commit/06b76575d99cd3b26a68fff49403179000c0d6c6

diff --git a/agents/newmailnotifier/specialnotifierjob.cpp b/agents/newmailnotifier/specialnotifierjob.cpp
index 14ee1884c..62df2543a 100644
--- a/agents/newmailnotifier/specialnotifierjob.cpp
+++ b/agents/newmailnotifier/specialnotifierjob.cpp
@@ -171,8 +171,10 @@ void SpecialNotifierJob::emitNotification(const QPixmap &pixmap)
                 break;
             }
 
-            auto replyAction = notification->addAction(replyLabel);
-            connect(replyAction, &KNotificationAction::activated, this, &SpecialNotifierJob::slotReplyMessage);
+            if (!replyLabel.isEmpty()) {
+                auto replyAction = notification->addAction(replyLabel);
+                connect(replyAction, &KNotificationAction::activated, this, &SpecialNotifierJob::slotReplyMessage);
+            }
         }
 
         connect(notification, &KNotification::closed, this, &SpecialNotifierJob::deleteLater);
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.