summaryrefslogtreecommitdiffstats
path: root/src/dbus
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-09-22 13:01:59 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-09-22 13:13:43 (GMT)
commite824d627a8702926e81d4d5605f1a372044fbc2c (patch)
treee46146eff7c766bb18399df5b0aa316e988f0280 /src/dbus
parent2d3836c44ac0e97b1f7301668f0241a57aff9c4a (diff)
downloadQt-e824d627a8702926e81d4d5605f1a372044fbc2c.zip
Qt-e824d627a8702926e81d4d5605f1a372044fbc2c.tar.gz
Qt-e824d627a8702926e81d4d5605f1a372044fbc2c.tar.bz2
We don't need to add a match rule to receive messages targetted at us.
This wasn't explicit in the D-Bus specification until recently. The reference implementation of the daemon already does it. Task-number: QT-3881 Reviewed-By: Robin Burchell Reviewed-By: Ritt Konstantin
Diffstat (limited to 'src/dbus')
-rw-r--r--src/dbus/qdbusintegrator.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/dbus/qdbusintegrator.cpp b/src/dbus/qdbusintegrator.cpp
index 3deb738..98d6a32 100644
--- a/src/dbus/qdbusintegrator.cpp
+++ b/src/dbus/qdbusintegrator.cpp
@@ -1673,24 +1673,6 @@ void QDBusConnectionPrivate::setConnection(DBusConnection *dbc, const QDBusError
q_dbus_connection_set_dispatch_status_function(connection, qDBusUpdateDispatchStatus, this, 0);
// Initialize the match rules
- // We want all messages that have us as destination
- // signals don't have destinations, but connectSignal() takes care of them
- if (service) {
- QVarLengthArray<char, 56> filter;
- filter.append("destination='", 13);
- filter.append(service, qstrlen(service));
- filter.append("\'\0", 2);
-
- QDBusErrorInternal error;
- q_dbus_bus_add_match(connection, filter.constData(), error);
- if (handleError(error)) {
- closeConnection();
- return;
- }
-
- } else {
- qWarning("QDBusConnectionPrivate::setConnection: Unable to get base service");
- }
connectSignal(dbusServiceString(), QString(), QString(), QLatin1String("NameAcquired"), QStringList(), QString(),
this, SLOT(registerService(QString)));