primitivus: disconnected contact crash fix
fix IndexError when selecting a contact and hiding disconnected ones fix bug 47
This commit is contained in:
parent
92d861f334
commit
e3286d5554
1 changed files with 4 additions and 1 deletions
|
|
@ -50,7 +50,10 @@ class ContactList(urwid.WidgetWrap, QuickContactList):
|
|||
widget, position = self.frame.body.get_focus()
|
||||
self.frame.body = self.__buildList()
|
||||
if position:
|
||||
self.frame.body.set_focus(position)
|
||||
try:
|
||||
self.frame.body.set_focus(position)
|
||||
except IndexError:
|
||||
pass
|
||||
self.host.redraw()
|
||||
|
||||
def update_jid(self, jid):
|
||||
|
|
|
|||
Loading…
Reference in a new issue