# HG changeset patch # User Goffi # Date 1379807359 -7200 # Node ID f7804c52c754d793e7aa74d66d7e1c26c8b4809a # Parent 17bd09cd10011c5f5a29f9af6e8939746e2c8ac8 primitivus: disconnected contact crash fix fix IndexError when selecting a contact and hiding disconnected ones fix bug 47 diff -r 17bd09cd1001 -r f7804c52c754 frontends/src/primitivus/contact_list.py --- a/frontends/src/primitivus/contact_list.py Sat Sep 21 15:34:10 2013 +0200 +++ b/frontends/src/primitivus/contact_list.py Sun Sep 22 01:49:19 2013 +0200 @@ -50,7 +50,10 @@ 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):