electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 15dda65c5282c133558584cff3bc397ad3763905
parent b4648eceda7408519e6b8885636fb787f4fdca23
Author: SomberNight <somber.night@protonmail.com>
Date:   Thu,  2 May 2019 01:20:14 +0200

qt network dialog: "use Tor proxy" cb would get auto-checked incorrectly

Diffstat:
Melectrum/gui/qt/network_dialog.py | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/electrum/gui/qt/network_dialog.py b/electrum/gui/qt/network_dialog.py @@ -478,9 +478,10 @@ class NetworkChoiceLayout(object): return self.tor_proxy = found_proxy self.tor_cb.setText("Use Tor proxy at port " + str(found_proxy[1])) - if self.proxy_mode.currentIndex() == self.proxy_mode.findText('SOCKS5') \ - and self.proxy_host.text() == "127.0.0.1" \ - and self.proxy_port.text() == str(found_proxy[1]): + if (self.proxy_cb.isChecked() + and self.proxy_mode.currentIndex() == self.proxy_mode.findText('SOCKS5') + and self.proxy_host.text() == "127.0.0.1" + and self.proxy_port.text() == str(found_proxy[1])): self.tor_cb.setChecked(True) self.tor_cb.show()