Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[connectionagent] Register DBus object/service in correct order. Fixe…
…s JB#38834
  • Loading branch information
rainemak committed Jun 1, 2017
1 parent f75337a commit b6229dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions connd/qconnectionagent.cpp
Expand Up @@ -52,13 +52,13 @@ QConnectionAgent::QConnectionAgent(QObject *parent) :
new ConnAdaptor(this);
QDBusConnection dbus = QDBusConnection::sessionBus();

if (!dbus.registerService(CONND_SERVICE)) {
qDebug() << "XXXXXXXXXXX could not register service XXXXXXXXXXXXXXXXXX";
if (!dbus.registerObject(CONND_PATH, this)) {
qDebug() << "XXXXXXXXXXX could not register object XXXXXXXXXXXXXXXXXX";
valid = false;
}

if (!dbus.registerObject(CONND_PATH, this)) {
qDebug() << "XXXXXXXXXXX could not register object XXXXXXXXXXXXXXXXXX";
if (!dbus.registerService(CONND_SERVICE)) {
qDebug() << "XXXXXXXXXXX could not register service XXXXXXXXXXXXXXXXXX";
valid = false;
}

Expand Down

0 comments on commit b6229dd

Please sign in to comment.