diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-09-10 17:48:45 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-09-22 13:13:56 (GMT) |
commit | 42f7c123e95c6d9f1d0ece648f61defa79627ab8 (patch) | |
tree | 51ccbadff84ddbbb7eb244a16ecfc913191b86ad /src/dbus | |
parent | ef2fcad61a316e36383e8b1e437699837f0baeda (diff) | |
download | Qt-42f7c123e95c6d9f1d0ece648f61defa79627ab8.zip Qt-42f7c123e95c6d9f1d0ece648f61defa79627ab8.tar.gz Qt-42f7c123e95c6d9f1d0ece648f61defa79627ab8.tar.bz2 |
We also don't need to watch for org.freedesktop.DBus changing owners
It never does.
Task-number: QT-3881
Reviewed-By: Robin Burchell
Reviewed-By: Ritt Konstantin
Diffstat (limited to 'src/dbus')
-rw-r--r-- | src/dbus/qdbusintegrator.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dbus/qdbusintegrator.cpp b/src/dbus/qdbusintegrator.cpp index 4efea75..31588e7 100644 --- a/src/dbus/qdbusintegrator.cpp +++ b/src/dbus/qdbusintegrator.cpp @@ -977,6 +977,10 @@ QDBusConnectionPrivate::QDBusConnectionPrivate(QObject *p) // prepopulate watchedServices: // we know that the owner of org.freedesktop.DBus is itself watchedServices.insert(dbusServiceString(), WatchedServiceData(dbusServiceString(), 1)); + + // prepopulate matchRefCounts: + // we know that org.freedesktop.DBus will never change owners + matchRefCounts.insert("type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.freedesktop.DBus'", 1); } QDBusConnectionPrivate::~QDBusConnectionPrivate() |