commit c9006032d96f454552e584bb2b81fcd3e560a9d3
parent 1518c7d1337d6d64731427d493bf91e2a14c272b
Author: SomberNight <somber.night@protonmail.com>
Date: Thu, 4 Jul 2019 21:46:11 +0200
qt network dialog: let user edit server host/port in peace
incoming network updates could keep changing the text fields while
user is editing them
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/electrum/gui/qt/network_dialog.py b/electrum/gui/qt/network_dialog.py
@@ -359,8 +359,9 @@ class NetworkChoiceLayout(object):
net_params = self.network.get_parameters()
host, port, protocol = net_params.host, net_params.port, net_params.protocol
proxy_config, auto_connect = net_params.proxy, net_params.auto_connect
- self.server_host.setText(host)
- self.server_port.setText(str(port))
+ if not self.server_host.hasFocus() and not self.server_port.hasFocus():
+ self.server_host.setText(host)
+ self.server_port.setText(str(port))
self.autoconnect_cb.setChecked(auto_connect)
interface = self.network.interface