Mercurial > libervia-backend
changeset 608:ea9aa51234eb
Primitivus: fixed contacts list (un)hidding
fix bug 17
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 24 Feb 2013 15:29:31 +0100 |
parents | c123dddaea6b |
children | 84a6e83157c2 |
files | frontends/src/primitivus/primitivus |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/frontends/src/primitivus/primitivus Sun Feb 24 13:57:37 2013 +0100 +++ b/frontends/src/primitivus/primitivus Sun Feb 24 15:29:31 2013 +0100 @@ -150,11 +150,10 @@ self.debug() elif input == 'f2': #user wants to (un)hide the contact_list try: - center_widgets = self.center_part.widget_list - if self.contact_list in center_widgets: - self.center_part.set_focus(0) #necessary as the focus change to the next object, we can go out of range if we are on the last object of self.center_part - center_widgets.remove(self.contact_list) - del self.center_part.column_types[0] + for wid, options in self.center_part.contents: + if self.contact_list is wid: + self.center_part.contents.remove((wid, options)) + break else: self.center_part.contents.insert(0, (self.contact_list, ('weight', 2, False))) except AttributeError: