commit 75f8878562ae95fd13a3902ca364a94f10d1ef43
parent 2993f2313f844e34f09099ed1f46b08d9c420c0e
Author: Amir Taaki <genjix@riseup.net>
Date: Mon, 13 Aug 2012 20:57:49 +0100
Fix check_button_status. QVariant returned by property(...) will not return a python bool object, but it can evaluate.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/gui_lite.py b/lib/gui_lite.py
@@ -303,7 +303,7 @@ class MiniWindow(QDialog):
self.amount_input.setText("")
def check_button_status(self):
- if (self.address_input.property("isValid") is True and
+ if (self.address_input.property("isValid") and
len(self.amount_input.text()) > 0):
self.send_button.setDisabled(False)
else: