summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@nokia.com>2011-02-03 20:10:59 (GMT)
committerJocelyn Turcotte <jocelyn.turcotte@nokia.com>2011-02-08 12:06:10 (GMT)
commite5fbadc54b8e25c94c50f0d0a49bc1a44674dac7 (patch)
tree0c060b5630057b6c5c59cd6212d7f909f2fac16f /src
parent6b6b13130a95b896202ad09fa349e3f69c2807de (diff)
downloadQt-e5fbadc54b8e25c94c50f0d0a49bc1a44674dac7.zip
Qt-e5fbadc54b8e25c94c50f0d0a49bc1a44674dac7.tar.gz
Qt-e5fbadc54b8e25c94c50f0d0a49bc1a44674dac7.tar.bz2
Use the thread-default glib context for the DBus connection in the ICD bearer manager.
This allows the bearer management plugin to be ran on a thread different than the main one. Task-number: QTBUG-17199 Reviewed-by: Kranthi <kranthi.kumar-kuntala@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/bearer/icd/dbusdispatcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/bearer/icd/dbusdispatcher.cpp b/src/plugins/bearer/icd/dbusdispatcher.cpp
index 5fc2a38..f100a48 100644
--- a/src/plugins/bearer/icd/dbusdispatcher.cpp
+++ b/src/plugins/bearer/icd/dbusdispatcher.cpp
@@ -468,7 +468,7 @@ void DBusDispatcher::setupDBus()
d_ptr->signal_vtable.message_function = signalHandler;
dbus_connection_set_exit_on_disconnect(d_ptr->connection, FALSE);
- dbus_connection_setup_with_g_main(d_ptr->connection, NULL);
+ dbus_connection_setup_with_g_main(d_ptr->connection, g_main_context_get_thread_default());
dbus_connection_register_object_path(d_ptr->connection,
d_ptr->signalPath.toLatin1(),
&d_ptr->signal_vtable,