Author: asterix Date: 2007-06-28 23:22:27 +0200 (Thu, 28 Jun 2007) New Revision: 8339
Modified: trunk/src/gajim.py Log: fix TB when we remove an account. Fixes #3268
Modified: trunk/src/gajim.py =================================================================== --- trunk/src/gajim.py 2007-06-28 21:09:29 UTC (rev 8338) +++ trunk/src/gajim.py 2007-06-28 21:22:27 UTC (rev 8339) @@ -482,8 +482,11 @@ model[self.roster.status_message_menuitem_iter][3] = True
# Inform all controls for this account of the connection state change - for ctrl in self.msg_win_mgr.get_controls() + \ - self.minimized_controls[account].values(): + ctrls = self.msg_win_mgr.get_controls() + if self.minimized_controls.has_key(account): + # Can not be the case when we remove account + ctrls += self.minimized_controls[account].values() + for ctrl in ctrls: if ctrl.account == account: if status == 'offline' or (status == 'invisible' and \ gajim.connections[account].is_zeroconf):