@@ -111,7 +111,6 @@ SendCoinsDialog::SendCoinsDialog(const PlatformStyle *_platformStyle, QWidget *p
111
111
ui->groupFee ->setId (ui->radioCustomFee , 1 );
112
112
ui->groupFee ->button ((int )std::max (0 , std::min (1 , settings.value (" nFeeRadio" ).toInt ())))->setChecked (true );
113
113
ui->groupCustomFee ->setId (ui->radioCustomPerKilobyte , 0 );
114
- ui->groupCustomFee ->setId (ui->radioCustomAtLeast , 1 );
115
114
ui->groupCustomFee ->button ((int )std::max (0 , std::min (1 , settings.value (" nCustomFeeRadio" ).toInt ())))->setChecked (true );
116
115
ui->customFee ->setValue (settings.value (" nTransactionFee" ).toLongLong ());
117
116
ui->checkBoxMinimumFee ->setChecked (settings.value (" fPayOnlyMinFee" ).toBool ());
@@ -608,7 +607,6 @@ void SendCoinsDialog::updateFeeSectionControls()
608
607
ui->checkBoxMinimumFee ->setEnabled (ui->radioCustomFee ->isChecked ());
609
608
ui->labelMinFeeWarning ->setEnabled (ui->radioCustomFee ->isChecked ());
610
609
ui->radioCustomPerKilobyte ->setEnabled (ui->radioCustomFee ->isChecked () && !ui->checkBoxMinimumFee ->isChecked ());
611
- ui->radioCustomAtLeast ->setEnabled (ui->radioCustomFee ->isChecked () && !ui->checkBoxMinimumFee ->isChecked () && CoinControlDialog::coinControl->HasSelected ());
612
610
ui->customFee ->setEnabled (ui->radioCustomFee ->isChecked () && !ui->checkBoxMinimumFee ->isChecked ());
613
611
}
614
612
@@ -619,19 +617,12 @@ void SendCoinsDialog::updateGlobalFeeVariables()
619
617
int nConfirmTarget = ui->sliderSmartFee ->maximum () - ui->sliderSmartFee ->value () + 2 ;
620
618
payTxFee = CFeeRate (0 );
621
619
622
- // set nMinimumTotalFee to 0 to not accidentally pay a custom fee
623
- CoinControlDialog::coinControl->nMinimumTotalFee = 0 ;
624
-
625
620
// show the estimated required time for confirmation
626
621
ui->confirmationTargetLabel ->setText (GUIUtil::formatDurationStr (nConfirmTarget * Params ().GetConsensus ().nPowTargetSpacing ) + " / " + tr (" %n block(s)" , " " , nConfirmTarget));
627
622
}
628
623
else
629
624
{
630
625
payTxFee = CFeeRate (ui->customFee ->value ());
631
-
632
- // if user has selected to set a minimum absolute fee, pass the value to coincontrol
633
- // set nMinimumTotalFee to 0 in case of user has selected that the fee is per KB
634
- CoinControlDialog::coinControl->nMinimumTotalFee = ui->radioCustomAtLeast ->isChecked () ? ui->customFee ->value () : 0 ;
635
626
}
636
627
}
637
628
@@ -830,21 +821,6 @@ void SendCoinsDialog::coinControlUpdateLabels()
830
821
if (!model || !model->getOptionsModel ())
831
822
return ;
832
823
833
- if (model->getOptionsModel ()->getCoinControlFeatures ())
834
- {
835
- // enable minimum absolute fee UI controls
836
- ui->radioCustomAtLeast ->setVisible (true );
837
-
838
- // only enable the feature if inputs are selected
839
- ui->radioCustomAtLeast ->setEnabled (ui->radioCustomFee ->isChecked () && !ui->checkBoxMinimumFee ->isChecked () &&CoinControlDialog::coinControl->HasSelected ());
840
- }
841
- else
842
- {
843
- // in case coin control is disabled (=default), hide minimum absolute fee UI controls
844
- ui->radioCustomAtLeast ->setVisible (false );
845
- return ;
846
- }
847
-
848
824
// set pay amounts
849
825
CoinControlDialog::payAmounts.clear ();
850
826
CoinControlDialog::fSubtractFeeFromAmount = false ;
0 commit comments