Don't try to shove None through dbus
This commit is contained in:
parent
6dd2f7109c
commit
d72ff8c6fb
@ -386,7 +386,14 @@ class Buddy(ExportedGObject):
|
||||
# to avoid leaking a PropertyChanged signal before the buddy is
|
||||
# actually valid the first time after creation
|
||||
if self._valid:
|
||||
self.PropertyChanged(changed_props)
|
||||
dbus_changed = {}
|
||||
for key, value in changed_props.items():
|
||||
if value:
|
||||
dbus_changed[key] = value
|
||||
else:
|
||||
dbus_changed[key] = ""
|
||||
self.PropertyChanged(dbus_changed)
|
||||
|
||||
self.emit('property-changed', changed_props)
|
||||
|
||||
self._update_validity()
|
||||
|
Loading…
Reference in New Issue
Block a user