This commit is contained in:
Kovid Goyal 2014-10-30 13:59:01 +05:30
parent ae8e933f8c
commit 75a8c36305

View File

@ -165,7 +165,7 @@ class DBusMenu(QObject):
continue
old_props = self.action_properties(ac_id)
new_props = self._action_properties[ac_id] = create_properties_for_action(ac, old_props)
removed = set(new_props) - set(old_props)
removed = set(old_props) - set(new_props)
if removed:
removed_props.append((ac_id, dbus.Array(removed, signature='as')))
updated = PropDict({k:v for k, v in new_props.iteritems() if v != old_props.get(k, null)})