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:
parent
b6196f147a
commit
9addada64c
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue