Fix check_button_status. QVariant returned by property(...) will not return a python bool object, but it can evaluate.

This commit is contained in:
Amir Taaki 2012-08-13 20:57:49 +01:00
parent 2993f2313f
commit 75f8878562
1 changed files with 1 additions and 1 deletions

View File

@ -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: