prevent traceback when we click on Rename in accounts window, but no account is selected. Fixes #5019
This commit is contained in:
parent
f02dcaca6a
commit
1290a751e1
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue