From 0dd81c48732effe622475130bbf56d3e77333239 Mon Sep 17 00:00:00 2001 From: mrdeveloper Date: Fri, 30 Oct 2020 22:13:56 +0100 Subject: [PATCH] Simplify and remove white space on recipient (Pay to) --- src/sendwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sendwidget.cpp b/src/sendwidget.cpp index dc90cb9..72a002e 100644 --- a/src/sendwidget.cpp +++ b/src/sendwidget.cpp @@ -74,7 +74,7 @@ void SendWidget::fillAddress(const QString &address) { void SendWidget::sendClicked() { double amount = 0.0; QString currency = ui->comboCurrencySelection->currentText(); - QString recipient = ui->lineAddress->text(); // @TODO: regex + QString recipient = ui->lineAddress->text().simplified().remove(' '); QString description = ui->lineDescription->text(); if(recipient.isEmpty()) { QMessageBox::warning(this, "Malformed recipient", "The recipient address was not correct");