mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-22 10:44:32 +00:00
Send: clear all lines on data paste
This commit is contained in:
parent
70e4e91a15
commit
5262e388f1
1 changed files with 3 additions and 6 deletions
|
@ -279,12 +279,9 @@ void SendWidget::onDataPasted(const QString &data) {
|
||||||
if (!data.isEmpty()) {
|
if (!data.isEmpty()) {
|
||||||
QVariantMap uriData = m_ctx->wallet->parse_uri_to_object(data);
|
QVariantMap uriData = m_ctx->wallet->parse_uri_to_object(data);
|
||||||
if (!uriData.contains("error")) {
|
if (!uriData.contains("error")) {
|
||||||
if (uriData.contains("address"))
|
|
||||||
ui->lineAddress->setText(uriData.value("address").toString());
|
ui->lineAddress->setText(uriData.value("address").toString());
|
||||||
if (uriData.contains("amount"))
|
|
||||||
ui->lineAmount->setText(uriData.value("amount").toString());
|
|
||||||
if (uriData.contains("tx_description"))
|
|
||||||
ui->lineDescription->setText(uriData.value("tx_description").toString());
|
ui->lineDescription->setText(uriData.value("tx_description").toString());
|
||||||
|
ui->lineAmount->setText(uriData.value("amount").toString());
|
||||||
} else {
|
} else {
|
||||||
ui->lineAddress->setText(data);
|
ui->lineAddress->setText(data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue