don't traceback when we try to draw an account that is not contacts._accounts. Fixes #5640

This commit is contained in:
Yann Leboulanger 2010-03-09 22:37:57 +01:00
parent 42f1952e15
commit dfc0a4feab
2 changed files with 3 additions and 2 deletions

View File

@ -627,7 +627,8 @@ def get_avatar_pixbuf_from_cache(fjid, use_local=True):
# don't show avatar for the transport itself
return None
if any(jid in gajim.contacts.get_gc_list(acc) for acc in gajim.connections):
if any(jid in gajim.contacts.get_gc_list(acc) for acc in \
gajim.contacts.get_accounts()):
is_groupchat_contact = True
else:
is_groupchat_contact = False

View File

@ -1398,7 +1398,7 @@ class RosterWindow:
self.on_modelfilter_row_has_child_toggled)
self.tree.set_model(self.modelfilter)
for acct in gajim.connections:
for acct in gajim.contacts.get_accounts():
self.add_account(acct)
self.add_account_contacts(acct)
# Recalculate column width for ellipsizing