Skip to content

Commit c4e4792

Browse files
committed
[Qt] Change RBF checkbox to reflect -walletrbf setting
Before this commit, the checkbox would always start off unchecked. After this commit it will respect the -walletrbf setting (which is currently false by default).
1 parent 838a58e commit c4e4792

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

src/qt/sendcoinsdialog.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ SendCoinsDialog::SendCoinsDialog(const PlatformStyle *_platformStyle, QWidget *p
112112
ui->groupCustomFee->button((int)std::max(0, std::min(1, settings.value("nCustomFeeRadio").toInt())))->setChecked(true);
113113
ui->customFee->setValue(settings.value("nTransactionFee").toLongLong());
114114
ui->checkBoxMinimumFee->setChecked(settings.value("fPayOnlyMinFee").toBool());
115+
ui->optInRBF->setCheckState(model->getDefaultWalletRbf() ? Qt::Checked : Qt::Unchecked);
115116
minimizeFeeSection(settings.value("fFeeSectionMinimized").toBool());
116117
}
117118

src/qt/walletmodel.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,3 +706,8 @@ int WalletModel::getDefaultConfirmTarget() const
706706
{
707707
return nTxConfirmTarget;
708708
}
709+
710+
bool WalletModel::getDefaultWalletRbf() const
711+
{
712+
return fWalletRbf;
713+
}

src/qt/walletmodel.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ class WalletModel : public QObject
213213

214214
int getDefaultConfirmTarget() const;
215215

216+
bool getDefaultWalletRbf() const;
217+
216218
private:
217219
CWallet *wallet;
218220
bool fHaveWatchOnly;

0 commit comments

Comments
 (0)