Commit c6405813 authored by Nicolas Fella's avatar Nicolas Fella

Fix printing DBus error

parent 6eb5e706
...@@ -25,7 +25,7 @@ QString DaemonDbusInterface::activatedService() { ...@@ -25,7 +25,7 @@ QString DaemonDbusInterface::activatedService() {
static const QString service = QStringLiteral("org.kde.kdeconnect"); static const QString service = QStringLiteral("org.kde.kdeconnect");
auto reply = DbusHelper::sessionBus().interface()->startService(service); auto reply = DbusHelper::sessionBus().interface()->startService(service);
if (!reply.isValid()) { if (!reply.isValid()) {
qWarning() << "error activating kdeconnectd:" << DbusHelper::sessionBus().interface()->lastError(); qWarning() << "error activating kdeconnectd:" << reply.error();
} }
return service; return service;
} }
......
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