mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 12:09:57 +00:00
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:
parent
7e801642c2
commit
4617a09af9
1 changed files with 8 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue