mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 08:17:59 +00:00
qr: scan valid addresses that miss an uri prefix
This commit is contained in:
parent
b58bff39a0
commit
dbc8c7d473
2 changed files with 6 additions and 0 deletions
|
@ -90,6 +90,9 @@ Rectangle {
|
||||||
if (!parsed.error) {
|
if (!parsed.error) {
|
||||||
root.qrcode_decoded(parsed.address, parsed.payment_id, parsed.amount, parsed.tx_description, parsed.recipient_name, parsed.extra_parameters);
|
root.qrcode_decoded(parsed.address, parsed.payment_id, parsed.amount, parsed.tx_description, parsed.recipient_name, parsed.extra_parameters);
|
||||||
root.state = "Stopped";
|
root.state = "Stopped";
|
||||||
|
} else if (walletManager.addressValid(data, appWindow.persistentSettings.nettype)) {
|
||||||
|
root.qrcode_decoded(data, "", "", "", "", null);
|
||||||
|
root.state = "Stopped";
|
||||||
} else {
|
} else {
|
||||||
onNotifyError(parsed.error);
|
onNotifyError(parsed.error);
|
||||||
}
|
}
|
||||||
|
|
|
@ -285,6 +285,9 @@ Rectangle {
|
||||||
if (!parsed.error) {
|
if (!parsed.error) {
|
||||||
fillPaymentDetails(parsed.address, parsed.payment_id, parsed.amount, parsed.tx_description, parsed.recipient_name);
|
fillPaymentDetails(parsed.address, parsed.payment_id, parsed.amount, parsed.tx_description, parsed.recipient_name);
|
||||||
break;
|
break;
|
||||||
|
} else if (walletManager.addressValid(codes[index], appWindow.persistentSettings.nettype)) {
|
||||||
|
fillPaymentDetails(codes[index]);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue