From dbbef771b39680b049b45e82457c4117b114c521 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 9 Jul 2017 12:03:07 +0200 Subject: [PATCH] network dialog: do not change auto_connect value from blockchain tab --- gui/qt/network_dialog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/qt/network_dialog.py b/gui/qt/network_dialog.py index cea15cab7..eed04e7e2 100644 --- a/gui/qt/network_dialog.py +++ b/gui/qt/network_dialog.py @@ -157,7 +157,7 @@ class NetworkChoiceLayout(object): self.server_port.editingFinished.connect(self.set_server) self.ssl_cb.clicked.connect(self.change_protocol) self.autoconnect_cb.clicked.connect(self.set_server) - self.autoconnect_cb.clicked.connect(self.enable_set_server) + self.autoconnect_cb.clicked.connect(self.update) msg = ' '.join([ _("If auto-connect is enabled, Electrum will always use a server that is on the longest blockchain."), @@ -345,8 +345,9 @@ class NetworkChoiceLayout(object): def follow_branch(self, index): self.network.follow_chain(index) + server = self.network.interface.server host, port, protocol, proxy, auto_connect = self.network.get_parameters() - auto_connect = True + host, port, protocol = server.split(':') self.network.set_parameters(host, port, protocol, proxy, auto_connect) self.update() @@ -354,7 +355,6 @@ class NetworkChoiceLayout(object): self.network.switch_to_interface(server) host, port, protocol, proxy, auto_connect = self.network.get_parameters() host, port, protocol = server.split(':') - auto_connect = False self.network.set_parameters(host, port, protocol, proxy, auto_connect) self.update()