From 4617a09af97a6be5d73141f6e194b77df4c5569d Mon Sep 17 00:00:00 2001 From: User Date: Wed, 13 Dec 2017 04:46:39 -0500 Subject: [PATCH] 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 --- pages/Receive.qml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pages/Receive.qml b/pages/Receive.qml index b22ddfcd..99c59c06 100644 --- a/pages/Receive.qml +++ b/pages/Receive.qml @@ -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()