From 171ad8118dc80b62edc52be32e1b504d0f32ee69 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 15 Jun 2011 12:20:23 +0200 Subject: [PATCH] prevent traceback with metacontacts. Fixes #6902, #5910 --- src/roster_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index c0425580b..8cbf6d090 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1418,9 +1418,10 @@ class RosterWindow: self._iters = {} # for merged mode self._iters['MERGED'] = {'account': None, 'groups': {}} - for acct in gajim.contacts.get_accounts(): self._iters[acct] = {'account': None, 'groups': {}, 'contacts': {}} + + for acct in gajim.contacts.get_accounts(): self.add_account(acct) self.add_account_contacts(acct)