Mercurial > libervia-web
changeset 911:997cf25e785c
browser side (contact list): fixed groups displaying
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 10 Aug 2016 22:51:18 +0200 |
parents | bc2082685234 |
children | 1ced5b522ae2 |
files | src/browser/sat_browser/contact_list.py |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/browser/sat_browser/contact_list.py Wed Aug 10 22:48:46 2016 +0200 +++ b/src/browser/sat_browser/contact_list.py Wed Aug 10 22:51:18 2016 +0200 @@ -63,10 +63,7 @@ VerticalPanel.__init__(self) self.setStyleName('groupPanel') self._parent = parent - - @property - def _groups(self): - return self._parent.contact_list._groups + self._groups = set() def add(self, group): if group in self._groups: @@ -102,7 +99,7 @@ return None def getGroups(self): - return set([g for g in self._groups if g is not None]) + return self._groups class ContactTitleLabel(libervia_widget.DragLabel, Label, ClickHandler): @@ -202,7 +199,7 @@ return False def getGroups(self): - return self._group_panel.getGroups() + return set([g for g in self._groups if g is not None]) def onMouseMove(self, sender, x, y): pass