From 5262e388f1654ff1261a72dba303a9f7ac8557b7 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Fri, 9 Jul 2021 23:43:59 +0200 Subject: [PATCH] Send: clear all lines on data paste --- src/SendWidget.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/SendWidget.cpp b/src/SendWidget.cpp index c767170..846d6b5 100644 --- a/src/SendWidget.cpp +++ b/src/SendWidget.cpp @@ -279,12 +279,9 @@ void SendWidget::onDataPasted(const QString &data) { if (!data.isEmpty()) { QVariantMap uriData = m_ctx->wallet->parse_uri_to_object(data); if (!uriData.contains("error")) { - if (uriData.contains("address")) - 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->lineAddress->setText(uriData.value("address").toString()); + ui->lineDescription->setText(uriData.value("tx_description").toString()); + ui->lineAmount->setText(uriData.value("amount").toString()); } else { ui->lineAddress->setText(data); }