Disable UI elements for selecting zero-fee
This commit is contained in:
parent
5496fa7c36
commit
61b4078a6a
|
@ -1167,6 +1167,7 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<!--
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayoutFee5" stretch="0,0,0">
|
<layout class="QHBoxLayout" name="horizontalLayoutFee5" stretch="0,0,0">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
|
@ -1207,6 +1208,7 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
-->
|
||||||
<item>
|
<item>
|
||||||
<spacer name="verticalSpacerFee2">
|
<spacer name="verticalSpacerFee2">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
|
|
@ -103,8 +103,9 @@ SendCoinsDialog::SendCoinsDialog(const PlatformStyle *platformStyle, QWidget *pa
|
||||||
settings.setValue("nTransactionFee", (qint64)DEFAULT_TRANSACTION_FEE);
|
settings.setValue("nTransactionFee", (qint64)DEFAULT_TRANSACTION_FEE);
|
||||||
if (!settings.contains("fPayOnlyMinFee"))
|
if (!settings.contains("fPayOnlyMinFee"))
|
||||||
settings.setValue("fPayOnlyMinFee", false);
|
settings.setValue("fPayOnlyMinFee", false);
|
||||||
if (!settings.contains("fSendFreeTransactions"))
|
// Dogecoin: Disable free transactions
|
||||||
settings.setValue("fSendFreeTransactions", false);
|
/* if (!settings.contains("fSendFreeTransactions"))
|
||||||
|
settings.setValue("fSendFreeTransactions", false); */
|
||||||
ui->groupFee->setId(ui->radioSmartFee, 0);
|
ui->groupFee->setId(ui->radioSmartFee, 0);
|
||||||
ui->groupFee->setId(ui->radioCustomFee, 1);
|
ui->groupFee->setId(ui->radioCustomFee, 1);
|
||||||
ui->groupFee->button((int)std::max(0, std::min(1, settings.value("nFeeRadio").toInt())))->setChecked(true);
|
ui->groupFee->button((int)std::max(0, std::min(1, settings.value("nFeeRadio").toInt())))->setChecked(true);
|
||||||
|
@ -114,7 +115,8 @@ SendCoinsDialog::SendCoinsDialog(const PlatformStyle *platformStyle, QWidget *pa
|
||||||
ui->sliderSmartFee->setValue(settings.value("nSmartFeeSliderPosition").toInt());
|
ui->sliderSmartFee->setValue(settings.value("nSmartFeeSliderPosition").toInt());
|
||||||
ui->customFee->setValue(settings.value("nTransactionFee").toLongLong());
|
ui->customFee->setValue(settings.value("nTransactionFee").toLongLong());
|
||||||
ui->checkBoxMinimumFee->setChecked(settings.value("fPayOnlyMinFee").toBool());
|
ui->checkBoxMinimumFee->setChecked(settings.value("fPayOnlyMinFee").toBool());
|
||||||
ui->checkBoxFreeTx->setChecked(settings.value("fSendFreeTransactions").toBool());
|
// Dogecoin: Disable free transactions
|
||||||
|
// ui->checkBoxFreeTx->setChecked(settings.value("fSendFreeTransactions").toBool());
|
||||||
minimizeFeeSection(settings.value("fFeeSectionMinimized").toBool());
|
minimizeFeeSection(settings.value("fFeeSectionMinimized").toBool());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -169,8 +171,9 @@ void SendCoinsDialog::setModel(WalletModel *model)
|
||||||
connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(updateFeeSectionControls()));
|
connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(updateFeeSectionControls()));
|
||||||
connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(updateGlobalFeeVariables()));
|
connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(updateGlobalFeeVariables()));
|
||||||
connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(coinControlUpdateLabels()));
|
connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(coinControlUpdateLabels()));
|
||||||
connect(ui->checkBoxFreeTx, SIGNAL(stateChanged(int)), this, SLOT(updateGlobalFeeVariables()));
|
// Dogecoin: Disable free transactions
|
||||||
connect(ui->checkBoxFreeTx, SIGNAL(stateChanged(int)), this, SLOT(coinControlUpdateLabels()));
|
// connect(ui->checkBoxFreeTx, SIGNAL(stateChanged(int)), this, SLOT(updateGlobalFeeVariables()));
|
||||||
|
// connect(ui->checkBoxFreeTx, SIGNAL(stateChanged(int)), this, SLOT(coinControlUpdateLabels()));
|
||||||
ui->customFee->setSingleStep(CWallet::minTxFee.GetFeePerK());
|
ui->customFee->setSingleStep(CWallet::minTxFee.GetFeePerK());
|
||||||
updateFeeSectionControls();
|
updateFeeSectionControls();
|
||||||
updateMinFeeLabel();
|
updateMinFeeLabel();
|
||||||
|
@ -188,7 +191,8 @@ SendCoinsDialog::~SendCoinsDialog()
|
||||||
settings.setValue("nSmartFeeSliderPosition", ui->sliderSmartFee->value());
|
settings.setValue("nSmartFeeSliderPosition", ui->sliderSmartFee->value());
|
||||||
settings.setValue("nTransactionFee", (qint64)ui->customFee->value());
|
settings.setValue("nTransactionFee", (qint64)ui->customFee->value());
|
||||||
settings.setValue("fPayOnlyMinFee", ui->checkBoxMinimumFee->isChecked());
|
settings.setValue("fPayOnlyMinFee", ui->checkBoxMinimumFee->isChecked());
|
||||||
settings.setValue("fSendFreeTransactions", ui->checkBoxFreeTx->isChecked());
|
// Dogecoin: Disable free transactions
|
||||||
|
// settings.setValue("fSendFreeTransactions", ui->checkBoxFreeTx->isChecked());
|
||||||
|
|
||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
@ -601,7 +605,8 @@ void SendCoinsDialog::updateGlobalFeeVariables()
|
||||||
fPayAtLeastCustomFee = ui->radioCustomAtLeast->isChecked();
|
fPayAtLeastCustomFee = ui->radioCustomAtLeast->isChecked();
|
||||||
}
|
}
|
||||||
|
|
||||||
fSendFreeTransactions = ui->checkBoxFreeTx->isChecked();
|
// Dogecoin: Disable free transactions
|
||||||
|
// fSendFreeTransactions = ui->checkBoxFreeTx->isChecked();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SendCoinsDialog::updateFeeMinimizedLabel()
|
void SendCoinsDialog::updateFeeMinimizedLabel()
|
||||||
|
|
Loading…
Reference in a new issue