fix TB when 2 resources with same status are in sub-menu

This commit is contained in:
Yann Leboulanger 2006-03-14 16:34:02 +00:00
parent b1ce1107de
commit 01a99ee766
1 changed files with 2 additions and 1 deletions

View File

@ -1146,8 +1146,9 @@ class RosterWindow:
if not iconset:
iconset = DEFAULT_ICONSET
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '16x16')
state_images = self.load_iconset(path)
for c in contacts:
# icon MUST be different instance for every item
state_images = self.load_iconset(path)
item = gtk.ImageMenuItem(c.resource + ' (' + str(c.priority) + ')')
icon_name = helpers.get_icon_name_to_show(c, account)
icon = state_images[icon_name]