From 9addada64cc04384c033da9c595ad838db20584d Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Mon, 21 Apr 2025 17:56:47 -0400 Subject: [PATCH] fixes #8517 , save the host name if the lineEdit is not empty, instaed of only if the value of the setting is not empty --- src/lib/gui/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/gui/MainWindow.cpp b/src/lib/gui/MainWindow.cpp index 45f298e92..0867203ab 100644 --- a/src/lib/gui/MainWindow.cpp +++ b/src/lib/gui/MainWindow.cpp @@ -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(); }