diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2009-05-10 23:37:39 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2009-05-10 23:37:39 +0400 |
commit | 1290a751e1cd846643b8ed2dcf5040000561eff1 (patch) | |
tree | 4bfdb198f431c3efb2d729f9fad40cbc5dec6d66 | |
parent | f02dcaca6a842b9e90580b96bca740668018586d (diff) |
prevent traceback when we click on Rename in accounts window, but no account is selected. Fixes #5019
-rw-r--r-- | src/config.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.py b/src/config.py index a0e9d4fa0..85d3c014a 100644 --- a/src/config.py +++ b/src/config.py @@ -1720,6 +1720,8 @@ class AccountsWindow: remove(account) def on_rename_button_clicked(self, widget): + if not self.current_account: + return enable = gajim.config.get('enable_zeroconf') if (self.current_account != gajim.ZEROCONF_ACC_NAME or enable) and \ gajim.connections[self.current_account].connected != 0: |