Commit b6229dd6 authored by Raine Makelainen's avatar Raine Makelainen

[connectionagent] Register DBus object/service in correct order. Fixes JB#38834

parent f75337af
...@@ -52,13 +52,13 @@ QConnectionAgent::QConnectionAgent(QObject *parent) : ...@@ -52,13 +52,13 @@ QConnectionAgent::QConnectionAgent(QObject *parent) :
new ConnAdaptor(this); new ConnAdaptor(this);
QDBusConnection dbus = QDBusConnection::sessionBus(); QDBusConnection dbus = QDBusConnection::sessionBus();
if (!dbus.registerService(CONND_SERVICE)) { if (!dbus.registerObject(CONND_PATH, this)) {
qDebug() << "XXXXXXXXXXX could not register service XXXXXXXXXXXXXXXXXX"; qDebug() << "XXXXXXXXXXX could not register object XXXXXXXXXXXXXXXXXX";
valid = false; valid = false;
} }
if (!dbus.registerObject(CONND_PATH, this)) { if (!dbus.registerService(CONND_SERVICE)) {
qDebug() << "XXXXXXXXXXX could not register object XXXXXXXXXXXXXXXXXX"; qDebug() << "XXXXXXXXXXX could not register service XXXXXXXXXXXXXXXXXX";
valid = false; valid = false;
} }
......
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