Commit e8806542 authored by martinjones's avatar martinjones

[transfer-engine] Register DBus object before service. Contributes to JB#36015

parent 34c63a45
......@@ -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
......
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