electrum

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

commit c0fc84439021ebdb39dba7407a9ad66f57e043ce
parent 86c36550809fa330b21edf30a9b65816890a7c5e
Author: ThomasV <thomasv@electrum.org>
Date:   Fri, 21 Oct 2016 15:13:40 +0200

fix #1673

Diffstat:
Mgui/qt/main_window.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -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 @@ -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