close all opened windows related to an account when we remove it

This commit is contained in:
Yann Leboulanger 2005-11-14 10:49:07 +00:00
parent df6474ec3b
commit 2da5b774e7
1 changed files with 2 additions and 0 deletions

View File

@ -2166,6 +2166,8 @@ class RemoveAccountWindow:
if self.remove_and_unregister_radiobutton.get_active():
gajim.connections[self.account].unregister_account()
# Close all opened windows
gajim.interface.rostrer.close_all(gajim.interface.instances[self.account])
del gajim.connections[self.account]
gajim.config.del_per('accounts', self.account)
gajim.interface.save_config()