summaryrefslogtreecommitdiffstats
path: root/src/dbus/qdbusabstractinterface.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-12-31 21:56:11 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-01-02 02:18:24 (GMT)
commit06bdf48e9194d73075041efecde5c70a144d6927 (patch)
treef53d680768e899ed5430cb871e88d92377a523c1 /src/dbus/qdbusabstractinterface.cpp
parent200413f08334574108fdb07efaa7648f90209a8f (diff)
downloadQt-06bdf48e9194d73075041efecde5c70a144d6927.zip
Qt-06bdf48e9194d73075041efecde5c70a144d6927.tar.gz
Qt-06bdf48e9194d73075041efecde5c70a144d6927.tar.bz2
Remove the need to know the service owner when adding/removing signal rules.
Task-number: QTBUG-5979 Reviewed-By: TrustMe
Diffstat (limited to 'src/dbus/qdbusabstractinterface.cpp')
-rw-r--r--src/dbus/qdbusabstractinterface.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/dbus/qdbusabstractinterface.cpp b/src/dbus/qdbusabstractinterface.cpp
index 994da10..ff0a93e 100644
--- a/src/dbus/qdbusabstractinterface.cpp
+++ b/src/dbus/qdbusabstractinterface.cpp
@@ -561,13 +561,7 @@ void QDBusAbstractInterface::connectNotify(const char *signal)
QDBusConnectionPrivate *conn = d->connectionPrivate();
if (conn) {
- // do we know what our owner is?
- QString owner;
- if (!d->service.isEmpty() && d->currentOwner.isNull())
- owner = QLatin1String("");
- else
- owner = d->currentOwner;
- conn->connectRelay(d->service, owner, d->path, d->interface,
+ conn->connectRelay(d->service, d->path, d->interface,
this, signal);
}
}
@@ -585,7 +579,7 @@ void QDBusAbstractInterface::disconnectNotify(const char *signal)
QDBusConnectionPrivate *conn = d->connectionPrivate();
if (conn)
- conn->disconnectRelay(d->service, d->currentOwner, d->path, d->interface,
+ conn->disconnectRelay(d->service, d->path, d->interface,
this, signal);
}