fix the draw avatar calls

This commit is contained in:
Yann Leboulanger 2008-02-05 21:24:48 +00:00
parent 37ea4052e1
commit 36438f44b6
2 changed files with 2 additions and 2 deletions

View File

@ -939,7 +939,7 @@ class GroupchatControl(ChatControlBase):
model[iter][C_TEXT] = name model[iter][C_TEXT] = name
def draw_avatar(self, nick): def draw_avatar(self, nick):
if gajim.config.get('show_avatars_in_roster'): if not gajim.config.get('show_avatars_in_roster'):
return return
model = self.list_treeview.get_model() model = self.list_treeview.get_model()
iter = self.get_contact_iter(nick) iter = self.get_contact_iter(nick)

View File

@ -760,7 +760,7 @@ class RosterWindow:
def draw_avatar(self, jid, account): def draw_avatar(self, jid, account):
'''draw the avatar''' '''draw the avatar'''
if gajim.config.get('show_avatars_in_roster'): if not gajim.config.get('show_avatars_in_roster'):
return return
model = self.tree.get_model() model = self.tree.get_model()
iters = self.get_contact_iter(jid, account) iters = self.get_contact_iter(jid, account)