Commit 33ceb39b authored by Laurent Montel's avatar Laurent Montel 😁

Make sure that interface is valid

parent abb0ca68
......@@ -52,6 +52,8 @@ void NewMailNotifierShowMessageJob::start()
}
}
QDBusInterface kmail(kmailInterface, QLatin1String("/KMail"), QLatin1String("org.kde.kmail.kmail"));
kmail.call(QLatin1String("showMail"), mId);
if (kmail.isValid()) {
kmail.call(QLatin1String("showMail"), mId);
}
Q_EMIT emitResult();
}
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