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); }