From c9006032d96f454552e584bb2b81fcd3e560a9d3 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 4 Jul 2019 21:46:11 +0200 Subject: [PATCH] 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 --- electrum/gui/qt/network_dialog.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qt/network_dialog.py b/electrum/gui/qt/network_dialog.py index 511700c35..92e3733d5 100644 --- 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