fixes #8517 , save the host name if the lineEdit is not empty, instaed of only if the value of the setting is not empty
This commit is contained in:
@ -697,7 +697,7 @@ void MainWindow::saveSettings()
|
||||
} else if (ui->rbModeServer->isChecked()) {
|
||||
Settings::setValue(Settings::Core::CoreMode, Settings::CoreMode::Server);
|
||||
}
|
||||
if (!Settings::value(Settings::Client::RemoteHost).isNull())
|
||||
if (!ui->lineHostname->text().isEmpty())
|
||||
Settings::setValue(Settings::Client::RemoteHost, ui->lineHostname->text());
|
||||
Settings::save();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user