diff options
author | David Faure <faure@kde.org> | 2009-10-30 13:48:24 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-30 13:48:52 (GMT) |
commit | 6584d601f9569ce7bfc704cb604472d324dfd253 (patch) | |
tree | 8dcd3e218632eb303072225e5602fa46ab25ac2d /src/dbus/qdbusintegrator.cpp | |
parent | 17a254a1b231393ada1f80f29d989ee71ff8fff4 (diff) | |
download | Qt-6584d601f9569ce7bfc704cb604472d324dfd253.zip Qt-6584d601f9569ce7bfc704cb604472d324dfd253.tar.gz Qt-6584d601f9569ce7bfc704cb604472d324dfd253.tar.bz2 |
One signal/slot connection is enough, when exporting N signals to DBus
When exporting an object to DBus, and the object has N signals, this code
was connecting the QDBusConnectionPrivate multiple times to the destroyed
signal of the object.
Merge-request: 1961
Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
Diffstat (limited to 'src/dbus/qdbusintegrator.cpp')
-rw-r--r-- | src/dbus/qdbusintegrator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus/qdbusintegrator.cpp b/src/dbus/qdbusintegrator.cpp index fb2dd77..686b56f 100644 --- a/src/dbus/qdbusintegrator.cpp +++ b/src/dbus/qdbusintegrator.cpp @@ -1937,7 +1937,7 @@ void QDBusConnectionPrivate::connectSignal(const QString &key, const SignalHook { signalHooks.insertMulti(key, hook); connect(hook.obj, SIGNAL(destroyed(QObject*)), SLOT(objectDestroyed(QObject*)), - Qt::DirectConnection); + Qt::ConnectionType(Qt::DirectConnection | Qt::UniqueConnection)); MatchRefCountHash::iterator it = matchRefCounts.find(hook.matchRule); |