changeset 4f9bf54c9b87 in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: gtk3 details:http://hg.gajim.org/gajim?cmd=changeset;node=4f9bf54c9b87 description: don't crash when we rename local account that is activated but zeroconf not available. Fixes #7511
diffstat:
src/config.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 5cb728527b4d -r 4f9bf54c9b87 src/config.py --- a/src/config.py Wed Oct 30 21:33:31 2013 +0100 +++ b/src/config.py Thu Oct 31 10:15:55 2013 +0100 @@ -2060,7 +2060,8 @@ 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'),