From 69ba1d31988dd00333060f498ccbfdd5ba070e09 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 7 May 2005 14:36:07 +0000 Subject: [PATCH] bugfix when we remove an account --- src/config.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/config.py b/src/config.py index 11777cf04..af07fe5bf 100644 --- a/src/config.py +++ b/src/config.py @@ -2057,9 +2057,8 @@ class Remove_account_window: if gajim.connections[self.account].connected: #FIXME: user unfriendly?? gajim.connections[self.account].change_status('offline', 'offline') - unregister = False if self.remove_and_unregister_radiobutton.get_active(): - unregister = True + gajim.connections[self.account].remove_account() del gajim.connections[self.account] gajim.config.del_per('accounts', self.account) del self.plugin.windows[self.account] @@ -2071,6 +2070,4 @@ class Remove_account_window: self.plugin.roster.draw_roster() if self.plugin.windows.has_key('accounts'): self.plugin.windows['accounts'].init_accounts() - if unregister: - gajim.connections[self.account].remove_account() self.window.destroy()