Send: clear all lines on data paste

This commit is contained in:
tobtoht 2021-07-09 23:43:59 +02:00
parent 70e4e91a15
commit 5262e388f1
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -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->lineAmount->setText(uriData.value("amount").toString());
} else {
ui->lineAddress->setText(data);
}