Fix regression from !85

Disabled accounts are not in gajim.connections, which leads to a
key error.
This commit is contained in:
Philipp Hörist 2017-05-01 16:08:02 +02:00
parent 9be4bb3ad8
commit 0eb2433c17
1 changed files with 2 additions and 1 deletions

View File

@ -1716,7 +1716,8 @@ class AccountsWindow:
self.remove_button.set_sensitive(True)
self.rename_button.set_sensitive(True)
if account != gajim.ZEROCONF_ACC_NAME:
if (account != gajim.ZEROCONF_ACC_NAME and
account in gajim.connections):
self.change_password_button.set_sensitive(
gajim.connections[account].register_supported)