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:
sithlord48
2025-04-21 17:56:47 -04:00
committed by Nick Bolton
parent b6196f147a
commit 9addada64c

View File

@ -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();
}