From c95e8a4e709c64f6bdec5adfb5f3dc558bf7de0c Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 16 Jul 2010 22:22:52 +0800 Subject: [PATCH] wix: scrolling is not reseted anymore when clicking on a group on contact list --- frontends/wix/contact_list.py | 2 ++ 1 file changed, 2 insertions(+) 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()