diff options
author | Prateek Sancheti <psancheti110@gmail.com> | 2021-07-29 21:57:57 +0530 |
---|---|---|
committer | Prateek Sancheti <psancheti110@gmail.com> | 2021-08-11 14:48:24 +0530 |
commit | ad28b66e98c9bb3bc7af2545654842544a798601 (patch) | |
tree | 0c57074f1a790d88838796d5a3dd48003f58ce55 /src/qt/sendcoinsentry.cpp | |
parent | 6499928bfb19674f98724b4aa5238d874e6738e4 (diff) | |
download | bitcoin-ad28b66e98c9bb3bc7af2545654842544a798601.tar.xz |
qt: Add SubFeeFromAmount option
Diffstat (limited to 'src/qt/sendcoinsentry.cpp')
-rw-r--r-- | src/qt/sendcoinsentry.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/sendcoinsentry.cpp b/src/qt/sendcoinsentry.cpp index 683c0441fa..5fa5165615 100644 --- a/src/qt/sendcoinsentry.cpp +++ b/src/qt/sendcoinsentry.cpp @@ -97,7 +97,9 @@ void SendCoinsEntry::clear() ui->payTo->clear(); ui->addAsLabel->clear(); ui->payAmount->clear(); - ui->checkboxSubtractFeeFromAmount->setCheckState(Qt::Unchecked); + if (model && model->getOptionsModel()) { + ui->checkboxSubtractFeeFromAmount->setChecked(model->getOptionsModel()->getSubFeeFromAmount()); + } ui->messageTextLabel->clear(); ui->messageTextLabel->hide(); ui->messageLabel->hide(); |