Mercurial > libervia-desktop-kivy
diff cagou/plugins/plugin_wid_contact_list.py @ 440:167c3e198f73
contact list: fixed crash on update when profile is not specified
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 07 Mar 2020 00:05:50 +0100 |
parents | f7476818f9fb |
children | 3c9ba4a694ef |
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_contact_list.py Sat Mar 07 00:05:49 2020 +0100 +++ b/cagou/plugins/plugin_wid_contact_list.py Sat Mar 07 00:05:50 2020 +0100 @@ -170,7 +170,12 @@ log.debug("full contact list update") self.layout.clear_widgets() for bare_jid, data in self.items_sorted.items(): - wid = CLContactItem(profile=profile, data=data, jid=bare_jid, main_wid=self) + wid = CLContactItem( + profile=data['profile'], + data=data, + jid=bare_jid, + main_wid=self, + ) self.layout.add_widget(wid) self._wid_map[(profile, bare_jid)] = wid elif type_ == C.UPDATE_MODIFY: