From 838a58e7ca5c534ae125ab510fbd65d2feec72a9 Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Tue, 5 Apr 2016 16:55:41 +0200 Subject: [Qt] Add simple optin-RBF checkbox and confirmation info --- src/qt/sendcoinsdialog.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/qt/sendcoinsdialog.cpp') diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp index 5aeda7a30d..c30120c027 100644 --- a/src/qt/sendcoinsdialog.cpp +++ b/src/qt/sendcoinsdialog.cpp @@ -245,6 +245,8 @@ void SendCoinsDialog::on_sendButton_clicked() else ctrl.nConfirmTarget = 0; + ctrl.signalRbf = ui->optInRBF->isChecked(); + prepareStatus = model->prepareTransaction(currentTransaction, &ctrl); // process prepareStatus and on error generate message shown to user @@ -324,6 +326,13 @@ void SendCoinsDialog::on_sendButton_clicked() questionString.append(QString("
(=%2)
") .arg(alternativeUnits.join(" " + tr("or") + "
"))); + if (ui->optInRBF->isChecked()) + { + questionString.append("
"); + questionString.append(tr("This transaction signals replaceability (optin-RBF).")); + questionString.append(""); + } + SendConfirmationDialog confirmationDialog(tr("Confirm send coins"), questionString.arg(formatted.join("
")), SEND_CONFIRM_DELAY, this); confirmationDialog.exec(); -- cgit v1.2.3