From f4c1ef6a5b5206872ce6e2b8034d1535675e982e Mon Sep 17 00:00:00 2001 From: Jeremiah Buddenhagen Date: Thu, 25 Jan 2018 17:14:03 -0800 Subject: [PATCH] Prepend text: to transaction comments sent from UI --- src/qt/sendcoinsdialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp index a5fe69bc2..969645bc1 100644 --- a/src/qt/sendcoinsdialog.cpp +++ b/src/qt/sendcoinsdialog.cpp @@ -262,6 +262,8 @@ void SendCoinsDialog::on_sendButton_clicked() // prepare transaction for getting txFee earlier std::string txComment = ui->txComment->text().toStdString(); + if (!txComment.empty()) + txComment = "text:" + txComment; WalletModelTransaction currentTransaction(recipients, txComment); WalletModel::SendCoinsReturn prepareStatus;