Philipp Hörist pushed to branch master at gajim / gajim

Commits:
0eb2433c by Philipp Hörist at 2017-05-01T16:08:02+02:00
Fix regression from !85

Disabled accounts are not in gajim.connections, which leads to a
key error.

- - - - -


1 changed file:

- src/config.py


Changes:

=====================================
src/config.py
=====================================
--- a/src/config.py
+++ b/src/config.py
@@ -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)
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/0eb2433c1754e4bdf967072aee6ce1b1c0fd4e1b
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to