Fix synchronous dispatch in ICD in non-main threads.
authorAaron McCarthy <aaron.mccarthy@nokia.com>
Fri, 5 Nov 2010 00:01:24 +0000 (10:01 +1000)
committerAaron McCarthy <aaron.mccarthy@nokia.com>
Fri, 5 Nov 2010 00:41:18 +0000 (10:41 +1000)
commit69a1fce88bb5f733895cc21758fd398bd650b7a6
tree1fd6aa0bdddf3299335ff40463d05ccda3195f94
parent688e0e8615330f1a50ef5a601fac2ce8de5af7d6
Fix synchronous dispatch in ICD in non-main threads.

ICD DBus signals always come in via the main thread. During synchronous
dispatch these signals were not being emitted when expected because no
event loop is running in the destination thread. Fixed by added a call
to QCoreApplication::sendPostedEvents(object, QEvent::MetaCall) in the
synchronous dispatch loop.

Task-number: QTBUG-15004
src/plugins/bearer/icd/maemo_icd.cpp