show only valid qr codes with valid payment ids

fix broken amount field

remove unnecessary braces

remove bad pid string and whitespace changes

remove payment id check in qr generation
This commit is contained in:
User 2017-12-13 04:46:39 -05:00
parent 7e801642c2
commit 4617a09af9
No known key found for this signature in database
GPG key ID: 7888CBB873E7565E

View file

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