diff src/browser/sat_browser/contact_list.py @ 787:b2a75a103aac

browser side (contact list): fixed a traceback on mouse enter/leave + bad attribute name
author Goffi <goffi@goffi.org>
date Wed, 02 Dec 2015 11:15:55 +0100
parents fc941d0d97f8
children f8a7a046ff9c
line wrap: on
line diff
--- a/src/browser/sat_browser/contact_list.py	Tue Dec 01 23:57:28 2015 +0100
+++ b/src/browser/sat_browser/contact_list.py	Wed Dec 02 11:15:55 2015 +0100
@@ -211,14 +211,14 @@
     def onMouseEnter(self, sender):
         if isinstance(sender, GroupLabel):
             jids = self.getGroupData(sender.group, "jids")
-            for contact in self._contacts_panel:
+            for contact in self._contacts_panel.getBoxes():
                 if contact.jid in jids:
                     contact.label.addStyleName("selected")
 
     def onMouseLeave(self, sender):
         if isinstance(sender, GroupLabel):
             jids = self.getGroupData(sender.group, "jids")
-            for contact in self._contacts_panel:
+            for contact in self._contacts_panel.getBoxes():
                 if contact.jid in jids:
                     contact.label.removeStyleName("selected")