From ac9a67b2697fa916dae3c46f901702bdf9132de2 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 31 Oct 2013 10:15:55 +0100 Subject: [PATCH] don't crash when we rename local account that is activated but zeroconf not available. Fixes #7511 --- src/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.py b/src/config.py index 95d986eb6..69d50348f 100644 --- a/src/config.py +++ b/src/config.py @@ -2060,7 +2060,8 @@ class AccountsWindow: def on_rename_button_clicked(self, widget): if not self.current_account: return - active = gajim.config.get_per('accounts', self.current_account, 'active') + active = gajim.config.get_per('accounts', self.current_account, + 'active') and self.current_account in gajim.connections if active and gajim.connections[self.current_account].connected != 0: dialogs.ErrorDialog( _('You are currently connected to the server'),