Primitivus: fixed contacts list (un)hidding
fix bug 17
This commit is contained in:
parent
05c53bf2d6
commit
0f8ebb4c8a
1 changed files with 4 additions and 5 deletions
|
|
@ -150,11 +150,10 @@ class PrimitivusApp(QuickApp):
|
||||||
self.debug()
|
self.debug()
|
||||||
elif input == 'f2': #user wants to (un)hide the contact_list
|
elif input == 'f2': #user wants to (un)hide the contact_list
|
||||||
try:
|
try:
|
||||||
center_widgets = self.center_part.widget_list
|
for wid, options in self.center_part.contents:
|
||||||
if self.contact_list in center_widgets:
|
if self.contact_list is wid:
|
||||||
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
|
self.center_part.contents.remove((wid, options))
|
||||||
center_widgets.remove(self.contact_list)
|
break
|
||||||
del self.center_part.column_types[0]
|
|
||||||
else:
|
else:
|
||||||
self.center_part.contents.insert(0, (self.contact_list, ('weight', 2, False)))
|
self.center_part.contents.insert(0, (self.contact_list, ('weight', 2, False)))
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue