tfix #1673 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit c0fc84439021ebdb39dba7407a9ad66f57e043ce DIR parent 86c36550809fa330b21edf30a9b65816890a7c5e HTML Author: ThomasV <thomasv@electrum.org> Date: Fri, 21 Oct 2016 15:13:40 +0200 fix #1673 Diffstat: M gui/qt/main_window.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py t@@ -2162,7 +2162,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): button.setEnabled(False) def get_address(): - addr = str(address_e.text()) + addr = str(address_e.text()).strip() if bitcoin.is_address(addr): return addr t@@ -2172,8 +2172,10 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): return pk.split() f = lambda: button.setEnabled(get_address() is not None and get_pk() is not None) + on_address = lambda text: address_e.setStyleSheet(BLACK_FG if get_address() else RED_FG) keys_e.textChanged.connect(f) address_e.textChanged.connect(f) + address_e.textChanged.connect(on_address) if not d.exec_(): return