[pim/kdepim-runtime] agents/newmailnotifier: Return error when we can connect to dbus

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

Return error when we can connect to dbus

M  +2    -0    agents/newmailnotifier/newmailnotifieropenfolderjob.cpp

https://invent.kde.org/pim/kdepim-runtime/-/commit/1a43b7aef96816744c0696209fb4192dc8e21c63

diff --git a/agents/newmailnotifier/newmailnotifieropenfolderjob.cpp b/agents/newmailnotifier/newmailnotifieropenfolderjob.cpp
index f205f1572..3d43e3dd2 100644
--- a/agents/newmailnotifier/newmailnotifieropenfolderjob.cpp
+++ b/agents/newmailnotifier/newmailnotifieropenfolderjob.cpp
@@ -42,6 +42,8 @@ void NewMailNotifierOpenFolderJob::start()
     if (kmail.isValid()) {
         kmail.call(QStringLiteral("selectFolder"), mIdentifer);
     } else {
+        setError(UserDefinedError);
+        setErrorText(i18n("Impossible to access the DBus interface."));
         qCWarning(NEWMAILNOTIFIER_LOG) << "Impossible to access the DBus interface";
     }
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.