when removing an account, close only windows that belong to this account. Fixes #2408

This commit is contained in:
Yann Leboulanger 2006-09-10 17:28:47 +00:00
parent c18df68b21
commit 532e0bb60a
1 changed files with 1 additions and 1 deletions

View File

@ -2648,7 +2648,7 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
def close_all(self, account):
'''close all the windows from an account'''
self.close_all_from_dict(gajim.interface.instances[account])
for ctrl in gajim.interface.msg_win_mgr.get_controls():
for ctrl in gajim.interface.msg_win_mgr.get_controls(acct = account):
ctrl.parent_win.remove_tab(ctrl)
def on_roster_window_delete_event(self, widget, event):