Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[transfer-engine] Register DBus object before service. Contributes to…
… JB#36015
  • Loading branch information
martinjones committed Sep 22, 2016
1 parent 34c63a4 commit e880654
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/transferengine.cpp
Expand Up @@ -780,14 +780,14 @@ TransferEngine::TransferEngine(QObject *parent) :
TransferDBRecord::registerType();

QDBusConnection connection = QDBusConnection::sessionBus();
if (!connection.registerService("org.nemo.transferengine")) {
qFatal("DBUS service already taken. Kill the other instance first.");
}

if (!connection.registerObject("/org/nemo/transferengine", this)) {
qFatal("Could not register object \'/org/nemo/transferengine\'");
}

if (!connection.registerService("org.nemo.transferengine")) {
qFatal("DBUS service already taken. Kill the other instance first.");
}

new TransferEngineAdaptor(this);

// Let's make sure that db is open by creating
Expand Down

0 comments on commit e880654

Please sign in to comment.