diff --git a/components/QRCodeScanner.qml b/components/QRCodeScanner.qml index a4d6927c4b..f3dd4a0d46 100644 --- a/components/QRCodeScanner.qml +++ b/components/QRCodeScanner.qml @@ -90,6 +90,9 @@ Rectangle { if (!parsed.error) { root.qrcode_decoded(parsed.address, parsed.payment_id, parsed.amount, parsed.tx_description, parsed.recipient_name, parsed.extra_parameters); root.state = "Stopped"; + } else if (walletManager.addressValid(data, appWindow.persistentSettings.nettype)) { + root.qrcode_decoded(data, "", "", "", "", null); + root.state = "Stopped"; } else { onNotifyError(parsed.error); } diff --git a/pages/Transfer.qml b/pages/Transfer.qml index 156d4e1ed3..6e8d912a17 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -285,6 +285,9 @@ Rectangle { if (!parsed.error) { fillPaymentDetails(parsed.address, parsed.payment_id, parsed.amount, parsed.tx_description, parsed.recipient_name); break; + } else if (walletManager.addressValid(codes[index], appWindow.persistentSettings.nettype)) { + fillPaymentDetails(codes[index]); + break; } } }