Bugfix: Qt/Options: Restore persistent "restart required" notice
This commit is contained in:
parent
3cd836c1d8
commit
0b4f273e9c
1 changed files with 4 additions and 1 deletions
|
@ -258,6 +258,9 @@ void OptionsDialog::showRestartWarning(bool fPersistent)
|
||||||
void OptionsDialog::clearStatusLabel()
|
void OptionsDialog::clearStatusLabel()
|
||||||
{
|
{
|
||||||
ui->statusLabel->clear();
|
ui->statusLabel->clear();
|
||||||
|
if (model && model->isRestartRequired()) {
|
||||||
|
showRestartWarning(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void OptionsDialog::updateProxyValidationState()
|
void OptionsDialog::updateProxyValidationState()
|
||||||
|
@ -267,7 +270,7 @@ void OptionsDialog::updateProxyValidationState()
|
||||||
if (pUiProxyIp->isValid() && (!ui->proxyPort->isEnabled() || ui->proxyPort->text().toInt() > 0) && (!ui->proxyPortTor->isEnabled() || ui->proxyPortTor->text().toInt() > 0))
|
if (pUiProxyIp->isValid() && (!ui->proxyPort->isEnabled() || ui->proxyPort->text().toInt() > 0) && (!ui->proxyPortTor->isEnabled() || ui->proxyPortTor->text().toInt() > 0))
|
||||||
{
|
{
|
||||||
setOkButtonState(otherProxyWidget->isValid()); //only enable ok button if both proxys are valid
|
setOkButtonState(otherProxyWidget->isValid()); //only enable ok button if both proxys are valid
|
||||||
ui->statusLabel->clear();
|
clearStatusLabel();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue