Skip to content
Snippets Groups Projects
Commit 49eee4b9 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

initialize dbus dispatcher correctly

parent f3700d73
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,8 @@ DBusManager::DBusManager()
#endif
{
try {
DBus::default_dispatcher = &_dispatcher;
DBus::Connection sessionConnection = DBus::Connection::SessionBus();
sessionConnection.request_name ("org.sflphone.SFLphone");
......@@ -58,7 +60,6 @@ DBusManager::DBusManager()
_networkManager = new NetworkManager (systemConnection, "/org/freedesktop/NetworkManager", "");
#endif
DBus::default_dispatcher = &_dispatcher;
_connected = true;
} catch (const DBus::Error &err) {
_error("%s: %s\n", err.name(), err.what());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment