electrum

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

commit 77b3052f44f796c6f8cc2f7151cd662cc373a1fe
parent 2b96b6dec1730c4969cd8a8f4e76e3cef6e819f9
Author: Amir Taaki <genjix@riseup.net>
Date:   Thu, 23 Aug 2012 10:07:28 +0100

(explanation: the value returned is a qVariant not a bool and so needs explicit comparison to work)
Revert "got rid of boolean value comparison using == as stated in pep8 style guide"

This reverts commit 3bd77170380152fadc3132ad2695d2fa6d43a6ce.

Diffstat:
Mlib/gui_lite.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/gui_lite.py b/lib/gui_lite.py @@ -322,7 +322,7 @@ class MiniWindow(QDialog): def check_button_status(self): """Check that the bitcoin address is valid and that something is entered in the amount before making the send button clickable.""" - if (self.address_input.property("isValid") and + if (self.address_input.property("isValid") == True and len(self.amount_input.text()) > 0): self.send_button.setDisabled(False) else: