Skip to content
Snippets Groups Projects
Commit ad5922fe authored by Stepan Salenikovich's avatar Stepan Salenikovich Committed by Emmanuel Lepage Vallee
Browse files

prevent sending a dbus register before unregister

Refs #66279
parent d3d8a45d
No related branches found
No related tags found
No related merge requests found
......@@ -34,8 +34,12 @@ InstanceInterface& DBus::InstanceManager::instance()
if(!interface->connection().isConnected()) {
throw "Error : dring not connected. Service " + interface->service() + " not connected. From instance interface.";
}
QDBusPendingReply<QString> reply = interface->Register(getpid(), "Ring KDE Client");
static bool registred = false;
if (!registred) {
QDBusPendingReply<QString> reply = interface->Register(getpid(), "");
registred = true;
reply.waitForFinished();
}
#endif
return *interface;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment