Don't try to shove None through dbus

This commit is contained in:
Dan Williams 2007-05-17 09:32:34 -04:00
parent 6dd2f7109c
commit d72ff8c6fb

View File

@ -386,7 +386,14 @@ class Buddy(ExportedGObject):
# to avoid leaking a PropertyChanged signal before the buddy is # to avoid leaking a PropertyChanged signal before the buddy is
# actually valid the first time after creation # actually valid the first time after creation
if self._valid: 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.emit('property-changed', changed_props)
self._update_validity() self._update_validity()