tAdded explanation to line returning qVariant for future eyes. - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 89953895f8daa60ef83f62492d0df878078f2909
DIR parent 77b3052f44f796c6f8cc2f7151cd662cc373a1fe
HTML Author: Amir Taaki <genjix@riseup.net>
Date: Thu, 23 Aug 2012 10:09:54 +0100
Added explanation to line returning qVariant for future eyes.
Diffstat:
M lib/gui_lite.py | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
DIR diff --git a/lib/gui_lite.py b/lib/gui_lite.py
t@@ -322,6 +322,8 @@ 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."""
+ # self.address_input.property(...) returns a qVariant, not a bool.
+ # The == is needed to properly invoke a comparison.
if (self.address_input.property("isValid") == True and
len(self.amount_input.text()) > 0):
self.send_button.setDisabled(False)