summaryrefslogtreecommitdiffstats
path: root/src/plugins/bearer/icd/qnetworksession_impl.h
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-09-27 07:05:25 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2010-09-29 02:29:58 (GMT)
commitd6da3caf5692efbf3b927c902888ea679a0ef8f1 (patch)
treef42d0ca09382f61f31c927f8bd0bbf80c14c9dcb /src/plugins/bearer/icd/qnetworksession_impl.h
parentbcdc043e357d6168663a6fbb4bf2d596d12cab77 (diff)
downloadQt-d6da3caf5692efbf3b927c902888ea679a0ef8f1.zip
Qt-d6da3caf5692efbf3b927c902888ea679a0ef8f1.tar.gz
Qt-d6da3caf5692efbf3b927c902888ea679a0ef8f1.tar.bz2
Connect/Disconnect requests needs to use the same dbus connection to ICD for the refcounting to work in ICD.
Fixes NB#188145 - Network interface doesn't go down after last client disconnects (cherry picked from commit 4acbb418b1ad093ad848143218a10ee2957db282)
Diffstat (limited to 'src/plugins/bearer/icd/qnetworksession_impl.h')
-rw-r--r--src/plugins/bearer/icd/qnetworksession_impl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/bearer/icd/qnetworksession_impl.h b/src/plugins/bearer/icd/qnetworksession_impl.h
index 390e508..a879971 100644
--- a/src/plugins/bearer/icd/qnetworksession_impl.h
+++ b/src/plugins/bearer/icd/qnetworksession_impl.h
@@ -58,6 +58,7 @@
#include <QtCore/qdatetime.h>
#include <QtCore/qtimer.h>
+#include <QtCore/quuid.h>
#include <QtDBus/qdbusconnection.h>
#include <QtDBus/qdbusinterface.h>
@@ -98,7 +99,9 @@ public:
m_stopTimer.setSingleShot(true);
connect(&m_stopTimer, SIGNAL(timeout()), this, SLOT(finishStopBySendingClosedSignal()));
- QDBusConnection systemBus = QDBusConnection::systemBus();
+ QDBusConnection systemBus = QDBusConnection::connectToBus(
+ QDBusConnection::SystemBus,
+ QUuid::createUuid().toString());
m_dbusInterface = new QDBusInterface(ICD_DBUS_API_INTERFACE,
ICD_DBUS_API_PATH,