commit dbbef771b39680b049b45e82457c4117b114c521
parent 1c5669ac510d4820d2236cb5d0f54edff6f70193
Author: ThomasV <thomasv@electrum.org>
Date: Sun, 9 Jul 2017 12:03:07 +0200
network dialog: do not change auto_connect value from blockchain tab
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git 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()