@@ -148,10 +148,6 @@ SendCoinsDialog::SendCoinsDialog(const PlatformStyle *_platformStyle, QWidget *p
148148 settings.setValue (" nFeeRadio" , 1 ); // custom
149149 if (!settings.contains (" nFeeRadio" ))
150150 settings.setValue (" nFeeRadio" , 0 ); // recommended
151- if (!settings.contains (" nCustomFeeRadio" ) && settings.contains (" nTransactionFee" ) && settings.value (" nTransactionFee" ).toLongLong () > 0 ) // compatibility
152- settings.setValue (" nCustomFeeRadio" , 1 ); // total at least
153- if (!settings.contains (" nCustomFeeRadio" ))
154- settings.setValue (" nCustomFeeRadio" , 0 ); // per kilobyte
155151 if (!settings.contains (" nSmartFeeSliderPosition" ))
156152 settings.setValue (" nSmartFeeSliderPosition" , 0 );
157153 if (!settings.contains (" nTransactionFee" ))
@@ -162,8 +158,6 @@ SendCoinsDialog::SendCoinsDialog(const PlatformStyle *_platformStyle, QWidget *p
162158 ui->groupFee ->setId (ui->radioSmartFee , 0 );
163159 ui->groupFee ->setId (ui->radioCustomFee , 1 );
164160 ui->groupFee ->button ((int )std::max (0 , std::min (1 , settings.value (" nFeeRadio" ).toInt ())))->setChecked (true );
165- ui->groupCustomFee ->setId (ui->radioCustomPerKilobyte , 0 );
166- ui->groupCustomFee ->button ((int )std::max (0 , std::min (1 , settings.value (" nCustomFeeRadio" ).toInt ())))->setChecked (true );
167161 ui->customFee ->setValue (settings.value (" nTransactionFee" ).toLongLong ());
168162 ui->checkBoxMinimumFee ->setChecked (settings.value (" fPayOnlyMinFee" ).toBool ());
169163 minimizeFeeSection (settings.value (" fFeeSectionMinimized" ).toBool ());
@@ -213,7 +207,6 @@ void SendCoinsDialog::setModel(WalletModel *_model)
213207 connect (ui->confTargetSelector , SIGNAL (currentIndexChanged (int )), this , SLOT (coinControlUpdateLabels ()));
214208 connect (ui->groupFee , SIGNAL (buttonClicked (int )), this , SLOT (updateFeeSectionControls ()));
215209 connect (ui->groupFee , SIGNAL (buttonClicked (int )), this , SLOT (coinControlUpdateLabels ()));
216- connect (ui->groupCustomFee , SIGNAL (buttonClicked (int )), this , SLOT (coinControlUpdateLabels ()));
217210 connect (ui->customFee , SIGNAL (valueChanged ()), this , SLOT (coinControlUpdateLabels ()));
218211 connect (ui->checkBoxMinimumFee , SIGNAL (stateChanged (int )), this , SLOT (setMinimumFee ()));
219212 connect (ui->checkBoxMinimumFee , SIGNAL (stateChanged (int )), this , SLOT (updateFeeSectionControls ()));
@@ -244,7 +237,6 @@ SendCoinsDialog::~SendCoinsDialog()
244237 QSettings settings;
245238 settings.setValue (" fFeeSectionMinimized" , fFeeMinimized );
246239 settings.setValue (" nFeeRadio" , ui->groupFee ->checkedId ());
247- settings.setValue (" nCustomFeeRadio" , ui->groupCustomFee ->checkedId ());
248240 settings.setValue (" nConfTarget" , getConfTargetForIndex (ui->confTargetSelector ->currentIndex ()));
249241 settings.setValue (" nTransactionFee" , (qint64)ui->customFee ->value ());
250242 settings.setValue (" fPayOnlyMinFee" , ui->checkBoxMinimumFee ->isChecked ());
@@ -699,7 +691,6 @@ void SendCoinsDialog::on_buttonMinimizeFee_clicked()
699691
700692void SendCoinsDialog::setMinimumFee ()
701693{
702- ui->radioCustomPerKilobyte ->setChecked (true );
703694 ui->customFee ->setValue (CWallet::GetRequiredFee (1000 ));
704695}
705696
@@ -712,7 +703,7 @@ void SendCoinsDialog::updateFeeSectionControls()
712703 ui->labelFeeEstimation ->setEnabled (ui->radioSmartFee ->isChecked ());
713704 ui->checkBoxMinimumFee ->setEnabled (ui->radioCustomFee ->isChecked ());
714705 ui->labelMinFeeWarning ->setEnabled (ui->radioCustomFee ->isChecked ());
715- ui->radioCustomPerKilobyte ->setEnabled (ui->radioCustomFee ->isChecked () && !ui->checkBoxMinimumFee ->isChecked ());
706+ ui->labelCustomPerKilobyte ->setEnabled (ui->radioCustomFee ->isChecked () && !ui->checkBoxMinimumFee ->isChecked ());
716707 ui->customFee ->setEnabled (ui->radioCustomFee ->isChecked () && !ui->checkBoxMinimumFee ->isChecked ());
717708}
718709
@@ -724,8 +715,7 @@ void SendCoinsDialog::updateFeeMinimizedLabel()
724715 if (ui->radioSmartFee ->isChecked ())
725716 ui->labelFeeMinimized ->setText (ui->labelSmartFee ->text ());
726717 else {
727- ui->labelFeeMinimized ->setText (BitcoinUnits::formatWithUnit (model->getOptionsModel ()->getDisplayUnit (), ui->customFee ->value ()) +
728- ((ui->radioCustomPerKilobyte ->isChecked ()) ? " /kB" : " " ));
718+ ui->labelFeeMinimized ->setText (BitcoinUnits::formatWithUnit (model->getOptionsModel ()->getDisplayUnit (), ui->customFee ->value ()) + " /kB" );
729719 }
730720}
731721
0 commit comments