(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 3bd7717038.
This commit is contained in:
Amir Taaki 2012-08-23 10:07:28 +01:00
parent 2b96b6dec1
commit 77b3052f44
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,7 @@ class MiniWindow(QDialog):
def check_button_status(self): def check_button_status(self):
"""Check that the bitcoin address is valid and that something """Check that the bitcoin address is valid and that something
is entered in the amount before making the send button clickable.""" 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): len(self.amount_input.text()) > 0):
self.send_button.setDisabled(False) self.send_button.setDisabled(False)
else: else: