Mercurial > libervia-web
comparison browser/sat_browser/contact_group.py @ 1200:f9091f4e04f0
browser (contact_group): fixed bad property name used in closeAndSave:
bad property name was used in closeAndSave resulting in a crash when used wanted to save
modifications.
fix 309
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 09 Jul 2019 20:41:50 +0200 |
parents | 28e3eb3bb217 |
children |
comparison
equal
deleted
inserted
replaced
1199:b300eaec53b6 | 1200:f9091f4e04f0 |
---|---|
222 _dialog = dialog.ConfirmDialog(confirm_cb, text="Do you really want to cancel without saving?") | 222 _dialog = dialog.ConfirmDialog(confirm_cb, text="Do you really want to cancel without saving?") |
223 _dialog.show() | 223 _dialog.show() |
224 | 224 |
225 def closeAndSave(self): | 225 def closeAndSave(self): |
226 """Call bridge methods to save the changes and close the dialog""" | 226 """Call bridge methods to save the changes and close the dialog""" |
227 old_groups_by_entity = contact_list.JIDDict(self.host.contact_list.roster_groups_by_entity) | 227 old_groups_by_entity = contact_list.JIDDict(self.host.contact_list.roster_groups_by_entities) |
228 old_entities = old_groups_by_entity.keys() | 228 old_entities = old_groups_by_entity.keys() |
229 result = {jid.JID(item): keys for item, keys in self.groups.getKeysByItem().iteritems()} | 229 result = {jid.JID(item): keys for item, keys in self.groups.getKeysByItem().iteritems()} |
230 groups_by_entity = contact_list.JIDDict(result) | 230 groups_by_entity = contact_list.JIDDict(result) |
231 entities = groups_by_entity.keys() | 231 entities = groups_by_entity.keys() |
232 | 232 |