Fix printing DBus error

This commit is contained in:
Nicolas Fella 2019-08-14 17:24:51 +02:00
parent 6eb5e70607
commit c64058132b

View file

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