Merge pull request #1018

4617a09 show only valid qr codes with valid payment ids
This commit is contained in:
luigi1111 2017-12-19 11:35:43 -06:00
commit 64ce0e62e2
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -60,12 +60,18 @@ Rectangle {
if (payment_id.length > 0) { if (payment_id.length > 0) {
integratedAddressLine.text = appWindow.currentWallet.integratedAddress(payment_id) integratedAddressLine.text = appWindow.currentWallet.integratedAddress(payment_id)
if (integratedAddressLine.text === "") if (integratedAddressLine.text === "") {
integratedAddressLine.text = qsTr("Invalid payment ID") integratedAddressLine.text = qsTr("Invalid payment ID")
paymentIdLine.error = true
}
else {
paymentIdLine.error = false
}
} }
else { else {
paymentIdLine.text = "" paymentIdLine.text = ""
integratedAddressLine.text = "" integratedAddressLine.text = ""
paymentIdLine.error = false
} }
update() update()