Skip to content

Commit a441db0

Browse files
committed
Merge #9755: Bugfix: Qt/Options: Restore persistent "restart required" notice
0b4f273 Bugfix: Qt/Options: Restore persistent "restart required" notice (Luke Dashjr)
2 parents e87ce95 + 0b4f273 commit a441db0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/qt/optionsdialog.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,9 @@ void OptionsDialog::showRestartWarning(bool fPersistent)
277277
void OptionsDialog::clearStatusLabel()
278278
{
279279
ui->statusLabel->clear();
280+
if (model && model->isRestartRequired()) {
281+
showRestartWarning(true);
282+
}
280283
}
281284

282285
void OptionsDialog::updateProxyValidationState()
@@ -286,7 +289,7 @@ void OptionsDialog::updateProxyValidationState()
286289
if (pUiProxyIp->isValid() && (!ui->proxyPort->isEnabled() || ui->proxyPort->text().toInt() > 0) && (!ui->proxyPortTor->isEnabled() || ui->proxyPortTor->text().toInt() > 0))
287290
{
288291
setOkButtonState(otherProxyWidget->isValid()); //only enable ok button if both proxys are valid
289-
ui->statusLabel->clear();
292+
clearStatusLabel();
290293
}
291294
else
292295
{

0 commit comments

Comments
 (0)