@@ -114,10 +114,6 @@ SendCoinsDialog::SendCoinsDialog(const PlatformStyle *_platformStyle, QWidget *p
114
114
settings.setValue (" nFeeRadio" , 1 ); // custom
115
115
if (!settings.contains (" nFeeRadio" ))
116
116
settings.setValue (" nFeeRadio" , 0 ); // recommended
117
- if (!settings.contains (" nCustomFeeRadio" ) && settings.contains (" nTransactionFee" ) && settings.value (" nTransactionFee" ).toLongLong () > 0 ) // compatibility
118
- settings.setValue (" nCustomFeeRadio" , 1 ); // total at least
119
- if (!settings.contains (" nCustomFeeRadio" ))
120
- settings.setValue (" nCustomFeeRadio" , 0 ); // per kilobyte
121
117
if (!settings.contains (" nSmartFeeSliderPosition" ))
122
118
settings.setValue (" nSmartFeeSliderPosition" , 0 );
123
119
if (!settings.contains (" nTransactionFee" ))
@@ -127,8 +123,6 @@ SendCoinsDialog::SendCoinsDialog(const PlatformStyle *_platformStyle, QWidget *p
127
123
ui->groupFee ->setId (ui->radioSmartFee , 0 );
128
124
ui->groupFee ->setId (ui->radioCustomFee , 1 );
129
125
ui->groupFee ->button ((int )std::max (0 , std::min (1 , settings.value (" nFeeRadio" ).toInt ())))->setChecked (true );
130
- ui->groupCustomFee ->setId (ui->radioCustomPerKilobyte , 0 );
131
- ui->groupCustomFee ->button (0 )->setChecked (true );
132
126
ui->customFee ->setValue (settings.value (" nTransactionFee" ).toLongLong ());
133
127
ui->checkBoxMinimumFee ->setChecked (settings.value (" fPayOnlyMinFee" ).toBool ());
134
128
minimizeFeeSection (settings.value (" fFeeSectionMinimized" ).toBool ());
@@ -178,7 +172,6 @@ void SendCoinsDialog::setModel(WalletModel *_model)
178
172
connect (ui->confTargetSelector , SIGNAL (currentIndexChanged (int )), this , SLOT (coinControlUpdateLabels ()));
179
173
connect (ui->groupFee , SIGNAL (buttonClicked (int )), this , SLOT (updateFeeSectionControls ()));
180
174
connect (ui->groupFee , SIGNAL (buttonClicked (int )), this , SLOT (coinControlUpdateLabels ()));
181
- connect (ui->groupCustomFee , SIGNAL (buttonClicked (int )), this , SLOT (coinControlUpdateLabels ()));
182
175
connect (ui->customFee , SIGNAL (valueChanged ()), this , SLOT (coinControlUpdateLabels ()));
183
176
connect (ui->checkBoxMinimumFee , SIGNAL (stateChanged (int )), this , SLOT (setMinimumFee ()));
184
177
connect (ui->checkBoxMinimumFee , SIGNAL (stateChanged (int )), this , SLOT (updateFeeSectionControls ()));
@@ -214,7 +207,6 @@ SendCoinsDialog::~SendCoinsDialog()
214
207
QSettings settings;
215
208
settings.setValue (" fFeeSectionMinimized" , fFeeMinimized );
216
209
settings.setValue (" nFeeRadio" , ui->groupFee ->checkedId ());
217
- settings.setValue (" nCustomFeeRadio" , ui->groupCustomFee ->checkedId ());
218
210
settings.setValue (" nConfTarget" , getConfTargetForIndex (ui->confTargetSelector ->currentIndex ()));
219
211
settings.setValue (" nTransactionFee" , (qint64)ui->customFee ->value ());
220
212
settings.setValue (" fPayOnlyMinFee" , ui->checkBoxMinimumFee ->isChecked ());
@@ -609,7 +601,6 @@ void SendCoinsDialog::on_buttonMinimizeFee_clicked()
609
601
610
602
void SendCoinsDialog::setMinimumFee ()
611
603
{
612
- ui->radioCustomPerKilobyte ->setChecked (true );
613
604
ui->customFee ->setValue (GetRequiredFee (1000 ));
614
605
}
615
606
@@ -622,7 +613,7 @@ void SendCoinsDialog::updateFeeSectionControls()
622
613
ui->labelFeeEstimation ->setEnabled (ui->radioSmartFee ->isChecked ());
623
614
ui->checkBoxMinimumFee ->setEnabled (ui->radioCustomFee ->isChecked ());
624
615
ui->labelMinFeeWarning ->setEnabled (ui->radioCustomFee ->isChecked ());
625
- ui->radioCustomPerKilobyte ->setEnabled (ui->radioCustomFee ->isChecked () && !ui->checkBoxMinimumFee ->isChecked ());
616
+ ui->labelCustomPerKilobyte ->setEnabled (ui->radioCustomFee ->isChecked () && !ui->checkBoxMinimumFee ->isChecked ());
626
617
ui->customFee ->setEnabled (ui->radioCustomFee ->isChecked () && !ui->checkBoxMinimumFee ->isChecked ());
627
618
}
628
619
@@ -634,8 +625,7 @@ void SendCoinsDialog::updateFeeMinimizedLabel()
634
625
if (ui->radioSmartFee ->isChecked ())
635
626
ui->labelFeeMinimized ->setText (ui->labelSmartFee ->text ());
636
627
else {
637
- ui->labelFeeMinimized ->setText (BitcoinUnits::formatWithUnit (model->getOptionsModel ()->getDisplayUnit (), ui->customFee ->value ()) +
638
- ((ui->radioCustomPerKilobyte ->isChecked ()) ? " /kB" : " " ));
628
+ ui->labelFeeMinimized ->setText (BitcoinUnits::formatWithUnit (model->getOptionsModel ()->getDisplayUnit (), ui->customFee ->value ()) + " /kB" );
639
629
}
640
630
}
641
631
0 commit comments