Skip to content

Commit 0b4f273

Browse files
committed
Bugfix: Qt/Options: Restore persistent "restart required" notice
1 parent 3cd836c commit 0b4f273

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
@@ -258,6 +258,9 @@ void OptionsDialog::showRestartWarning(bool fPersistent)
258258
void OptionsDialog::clearStatusLabel()
259259
{
260260
ui->statusLabel->clear();
261+
if (model && model->isRestartRequired()) {
262+
showRestartWarning(true);
263+
}
261264
}
262265

263266
void OptionsDialog::updateProxyValidationState()
@@ -267,7 +270,7 @@ void OptionsDialog::updateProxyValidationState()
267270
if (pUiProxyIp->isValid() && (!ui->proxyPort->isEnabled() || ui->proxyPort->text().toInt() > 0) && (!ui->proxyPortTor->isEnabled() || ui->proxyPortTor->text().toInt() > 0))
268271
{
269272
setOkButtonState(otherProxyWidget->isValid()); //only enable ok button if both proxys are valid
270-
ui->statusLabel->clear();
273+
clearStatusLabel();
271274
}
272275
else
273276
{

0 commit comments

Comments
 (0)