Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2009-05-10 23:37:39 +0400
committerYann Leboulanger <asterix@lagaule.org>2009-05-10 23:37:39 +0400
commit1290a751e1cd846643b8ed2dcf5040000561eff1 (patch)
tree4bfdb198f431c3efb2d729f9fad40cbc5dec6d66
parentf02dcaca6a842b9e90580b96bca740668018586d (diff)
prevent traceback when we click on Rename in accounts window, but no account is selected. Fixes #5019
-rw-r--r--src/config.py2
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: