fix TB when 2 resources with same status are in sub-menu
This commit is contained in:
parent
b1ce1107de
commit
01a99ee766
1 changed files with 2 additions and 1 deletions
|
@ -1146,8 +1146,9 @@ class RosterWindow:
|
||||||
if not iconset:
|
if not iconset:
|
||||||
iconset = DEFAULT_ICONSET
|
iconset = DEFAULT_ICONSET
|
||||||
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '16x16')
|
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '16x16')
|
||||||
state_images = self.load_iconset(path)
|
|
||||||
for c in contacts:
|
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) + ')')
|
item = gtk.ImageMenuItem(c.resource + ' (' + str(c.priority) + ')')
|
||||||
icon_name = helpers.get_icon_name_to_show(c, account)
|
icon_name = helpers.get_icon_name_to_show(c, account)
|
||||||
icon = state_images[icon_name]
|
icon = state_images[icon_name]
|
||||||
|
|
Loading…
Add table
Reference in a new issue