@@ -271,7 +271,7 @@ bool SendCoinsDialog::PrepareSendText(QString& question_string, QString& informa
271
271
m_current_transaction = std::make_unique<WalletModelTransaction>(recipients);
272
272
WalletModel::SendCoinsReturn prepareStatus;
273
273
274
- updateCoinControlState (*m_coin_control );
274
+ updateCoinControlState ();
275
275
276
276
prepareStatus = model->prepareTransaction (*m_current_transaction, *m_coin_control);
277
277
@@ -740,19 +740,19 @@ void SendCoinsDialog::updateFeeMinimizedLabel()
740
740
}
741
741
}
742
742
743
- void SendCoinsDialog::updateCoinControlState (CCoinControl& ctrl )
743
+ void SendCoinsDialog::updateCoinControlState ()
744
744
{
745
745
if (ui->radioCustomFee ->isChecked ()) {
746
- ctrl. m_feerate = CFeeRate (ui->customFee ->value ());
746
+ m_coin_control-> m_feerate = CFeeRate (ui->customFee ->value ());
747
747
} else {
748
- ctrl. m_feerate .reset ();
748
+ m_coin_control-> m_feerate .reset ();
749
749
}
750
750
// Avoid using global defaults when sending money from the GUI
751
751
// Either custom fee will be used or if not selected, the confirmation target from dropdown box
752
- ctrl. m_confirm_target = getConfTargetForIndex (ui->confTargetSelector ->currentIndex ());
753
- ctrl. m_signal_bip125_rbf = ui->optInRBF ->isChecked ();
752
+ m_coin_control-> m_confirm_target = getConfTargetForIndex (ui->confTargetSelector ->currentIndex ());
753
+ m_coin_control-> m_signal_bip125_rbf = ui->optInRBF ->isChecked ();
754
754
// Include watch-only for wallets without private key
755
- ctrl. fAllowWatchOnly = model->wallet ().privateKeysDisabled ();
755
+ m_coin_control-> fAllowWatchOnly = model->wallet ().privateKeysDisabled ();
756
756
}
757
757
758
758
void SendCoinsDialog::updateNumberOfBlocks (int count, const QDateTime& blockDate, double nVerificationProgress, bool headers, SynchronizationState sync_state) {
@@ -765,7 +765,7 @@ void SendCoinsDialog::updateSmartFeeLabel()
765
765
{
766
766
if (!model || !model->getOptionsModel ())
767
767
return ;
768
- updateCoinControlState (*m_coin_control );
768
+ updateCoinControlState ();
769
769
m_coin_control->m_feerate .reset (); // Explicitly use only fee estimation rate for smart fee labels
770
770
int returned_target;
771
771
FeeReason reason;
@@ -928,7 +928,7 @@ void SendCoinsDialog::coinControlUpdateLabels()
928
928
if (!model || !model->getOptionsModel ())
929
929
return ;
930
930
931
- updateCoinControlState (*m_coin_control );
931
+ updateCoinControlState ();
932
932
933
933
// set pay amounts
934
934
CoinControlDialog::payAmounts.clear ();
0 commit comments