diff --git a/frontends/wix/contact_list.py b/frontends/wix/contact_list.py index da62293e..f1b15689 100644 --- a/frontends/wix/contact_list.py +++ b/frontends/wix/contact_list.py @@ -147,6 +147,7 @@ class ContactList(wx.SimpleHtmlListBox, QuickContactList): """Called when a contact is selected.""" data = self.getSelection() if data == None: #we have a group + first_visible = self.GetVisibleBegin() group = self.GetClientData(self.GetSelection()) erased = self.__eraseGroup(group) if not erased: #the group was already erased, we can add again the contacts @@ -156,6 +157,7 @@ class ContactList(wx.SimpleHtmlListBox, QuickContactList): for contact in contacts: self.Insert(self.__presentItem(contact), id_insert, contact) self.SetSelection(wx.NOT_FOUND) + self.ScrollToLine(first_visible) event.Skip(False) else: event.Skip()