Skip to content

Commit 8775691

Browse files
committed
Bugfix: GUI: Restore SendConfirmationDialog button default to "Yes"
The SendConfirmationDialog is used for bumping the fee, where "Send" doesn't really make sense
1 parent 831675c commit 8775691

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/qt/sendcoinsdialog.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,9 @@ SendConfirmationDialog::SendConfirmationDialog(const QString& title, const QStri
966966
setStandardButtons(QMessageBox::Yes | QMessageBox::Cancel);
967967
setDefaultButton(QMessageBox::Cancel);
968968
yesButton = button(QMessageBox::Yes);
969+
if (confirmButtonText.isEmpty()) {
970+
confirmButtonText = yesButton->text();
971+
}
969972
updateYesButton();
970973
connect(&countDownTimer, &QTimer::timeout, this, &SendConfirmationDialog::countDown);
971974
}

src/qt/sendcoinsdialog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class SendConfirmationDialog : public QMessageBox
115115
Q_OBJECT
116116

117117
public:
118-
SendConfirmationDialog(const QString& title, const QString& text, const QString& informative_text = "", const QString& detailed_text = "", int secDelay = SEND_CONFIRM_DELAY, const QString& confirmText = "Send", QWidget* parent = nullptr);
118+
SendConfirmationDialog(const QString& title, const QString& text, const QString& informative_text = "", const QString& detailed_text = "", int secDelay = SEND_CONFIRM_DELAY, const QString& confirmText = "", QWidget* parent = nullptr);
119119
int exec() override;
120120

121121
private Q_SLOTS:

0 commit comments

Comments
 (0)