mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
Merge pull request #1018
4617a09
show only valid qr codes with valid payment ids
This commit is contained in:
commit
64ce0e62e2
1 changed files with 8 additions and 2 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue