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