Fix check_button_status. QVariant returned by property(...) will not return a python bool object, but it can evaluate.
This commit is contained in:
parent
2993f2313f
commit
75f8878562
|
@ -303,7 +303,7 @@ class MiniWindow(QDialog):
|
||||||
self.amount_input.setText("")
|
self.amount_input.setText("")
|
||||||
|
|
||||||
def check_button_status(self):
|
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):
|
len(self.amount_input.text()) > 0):
|
||||||
self.send_button.setDisabled(False)
|
self.send_button.setDisabled(False)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue