Do not load avatar in roster if we don't want to show it there

This commit is contained in:
Jean-Marie Traissard 2008-02-02 15:19:12 +00:00
parent e695dddf24
commit 7448dab437
1 changed files with 4 additions and 2 deletions

View File

@ -326,7 +326,8 @@ class RosterWindow:
model.append(i, (None, name, 'contact', jid, account, None,
None))
self.draw_contact(jid, account)
self.draw_avatar(jid, account)
if gajim.config.get('show_avatars_in_roster'):
self.draw_avatar(jid, account)
self.draw_account(account)
# Redraw parent to change icon
self.draw_contact(big_brother_jid, big_brother_account)
@ -386,7 +387,8 @@ class RosterWindow:
if gajim.groups[account][group]['expand']:
self.tree.expand_row(model.get_path(iterG), False)
self.draw_contact(jid, account)
self.draw_avatar(jid, account)
if gajim.config.get('show_avatars_in_roster'):
self.draw_avatar(jid, account)
self.draw_account(account)
# put the children under this iter
for data in shown_family: