mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
Merge #10242: [qt] Don't call method on null WalletModel object
fb463d1
[qt] Don't call method on null WalletModel object (Russell Yanofsky)
Tree-SHA512: 84c9d394a16eb44e2673e7d16961ea9514fd0ef3912baf7cd7b8424a46ead138ac8ecc59c4eebfb46941fa3081555fd6ee15fec699a3952e81f960932e06cee0
This commit is contained in:
commit
f6f3b58a72
@ -115,7 +115,6 @@ SendCoinsDialog::SendCoinsDialog(const PlatformStyle *_platformStyle, QWidget *p
|
||||
ui->groupCustomFee->button((int)std::max(0, std::min(1, settings.value("nCustomFeeRadio").toInt())))->setChecked(true);
|
||||
ui->customFee->setValue(settings.value("nTransactionFee").toLongLong());
|
||||
ui->checkBoxMinimumFee->setChecked(settings.value("fPayOnlyMinFee").toBool());
|
||||
ui->optInRBF->setCheckState(model->getDefaultWalletRbf() ? Qt::Checked : Qt::Unchecked);
|
||||
minimizeFeeSection(settings.value("fFeeSectionMinimized").toBool());
|
||||
}
|
||||
|
||||
@ -176,6 +175,9 @@ void SendCoinsDialog::setModel(WalletModel *_model)
|
||||
updateSmartFeeLabel();
|
||||
updateGlobalFeeVariables();
|
||||
|
||||
// set default rbf checkbox state
|
||||
ui->optInRBF->setCheckState(model->getDefaultWalletRbf() ? Qt::Checked : Qt::Unchecked);
|
||||
|
||||
// set the smartfee-sliders default value (wallets default conf.target or last stored value)
|
||||
QSettings settings;
|
||||
if (settings.value("nSmartFeeSliderPosition").toInt() == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user