Error when remvoing contact
Bug description
I sometimes get an exception error when removing a contact:
Traceback (most recent call last):
File "/home/r/src/gajim/src/dialogs.py", line 1746, in on_response_ok
*self.user_response_ok[1:])
File "/home/r/src/gajim/src/roster_window.py", line 3666, in on_ok
self.remove_contact(contact.jid, account, backend=True)
File "/home/r/src/gajim/src/roster_window.py", line 762, in remove_contact
account)
File "/home/r/src/gajim/src/roster_window.py", line 478, in _add_metacontact_family
self._get_nearby_family_and_big_brother(family, account)
File "/home/r/src/gajim/src/roster_window.py", line 624, in _get_nearby_family_and_big_brother
return gajim.contacts.get_nearby_family_and_big_brother(family, account)
File "/home/r/src/gajim/src/common/contacts.py", line 839, in get_nearby_family_and_big_brother
big_brother_data = self._get_metacontacts_big_brother(nearby_family)
File "/home/r/src/gajim/src/common/contacts.py", line 851, in _get_metacontacts_big_brother
return family[-1]
IndexError: list index out of range
Steps to reproduce
I think all the contacts I got this for were part of a meta-contact that spanned several accounts, and I removed them while being in the "split account" view.
Software versions
Gajim version: hg branch 0,16 OS version: Debian testing GTK version: 2.24.28 PyGTK version: 2.24.0