Commit 49eee4b9 authored by Rafaël Carré's avatar Rafaël Carré

initialize dbus dispatcher correctly

parent f3700d73
......@@ -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());
......
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