diff options
author | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2013-02-07 14:40:31 -0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2013-02-14 16:22:34 +0100 |
commit | 974770da9fb0693bb4bb57e5adc0b067f62b2ec4 (patch) | |
tree | 859bd4cb3c874ab8e8e626d9c67cacd6b969919b /gdbus | |
parent | 4654ee6b9a8d4219a49954c35ed7e7abd859ffac (diff) | |
download | connman-974770da9fb0693bb4bb57e5adc0b067f62b2ec4.tar.gz connman-974770da9fb0693bb4bb57e5adc0b067f62b2ec4.tar.bz2 connman-974770da9fb0693bb4bb57e5adc0b067f62b2ec4.zip |
gdbus: Fix missing PropertiesChanged signal
If D-Bus ObjectManager is not supported, InterfacesAdded signal
checking needs to be ignored otherwise PropertiesChanged signal
will never be sent.
Diffstat (limited to 'gdbus')
-rw-r--r-- | gdbus/object.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdbus/object.c b/gdbus/object.c index 0c112465..43fb1f06 100644 --- a/gdbus/object.c +++ b/gdbus/object.c @@ -1701,8 +1701,11 @@ void g_dbus_emit_property_changed(DBusConnection *connection, if (iface == NULL) return; - /* Don't emit property changed if interface is not yet published */ - if (g_slist_find(data->added, iface)) + /* + * If ObjectManager is attached, don't emit property changed if + * interface is not yet published + */ + if (root && g_slist_find(data->added, iface)) return; property = find_property(iface->properties, name); |