Commit bef19168 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile with last kf5 version

parent 81d61a98
Pipeline #59778 canceled with stage
......@@ -35,8 +35,8 @@ void NewMailNotifierShowMessageJob::start()
if (!reply.isValid() || !reply.value()) {
// Program is not already running, so start it
QString errmsg;
if (KToolInvocation::startServiceByDesktopName(QStringLiteral("org.kde.kmail2"), QString(), &errmsg)) {
qCDebug(NEWMAILNOTIFIER_LOG) << " Can not start kmail" << errmsg;
if (!QDBusConnection::sessionBus().interface()->startService(QStringLiteral("org.kde.kmail2")).isValid()) {
qCDebug(NEWMAILNOTIFIER_LOG) << " Can not start kmail";
setErrorText(i18n("Unable to start KMail application."));
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