prevent traceback with metacontacts. Fixes #6902, #5910

This commit is contained in:
Yann Leboulanger 2011-06-15 12:20:23 +02:00
parent f96427b23f
commit 171ad8118d
1 changed files with 2 additions and 1 deletions

View File

@ -1418,9 +1418,10 @@ class RosterWindow:
self._iters = {} self._iters = {}
# for merged mode # for merged mode
self._iters['MERGED'] = {'account': None, 'groups': {}} self._iters['MERGED'] = {'account': None, 'groups': {}}
for acct in gajim.contacts.get_accounts(): for acct in gajim.contacts.get_accounts():
self._iters[acct] = {'account': None, 'groups': {}, 'contacts': {}} self._iters[acct] = {'account': None, 'groups': {}, 'contacts': {}}
for acct in gajim.contacts.get_accounts():
self.add_account(acct) self.add_account(acct)
self.add_account_contacts(acct) self.add_account_contacts(acct)