check if contact is still in room when we want to draw his avatar

This commit is contained in:
Yann Leboulanger 2006-10-09 09:59:08 +00:00
parent c3062d493b
commit 0a572cf822
1 changed files with 2 additions and 0 deletions

View File

@ -753,6 +753,8 @@ class GroupchatControl(ChatControlBase):
def draw_avatar(self, nick):
model = self.list_treeview.get_model()
iter = self.get_contact_iter(nick)
if not iter:
return
if gajim.config.get('show_avatars_in_roster'):
pixbuf = gtkgui_helpers.get_avatar_pixbuf_from_cache(self.room_jid + \
'/' + nick, True)