refactor: Remove unneeded QVariant() when setting a setting empty to be removed

This commit is contained in:
sithlord48
2026-01-18 09:32:19 -05:00
committed by Nick Bolton
parent b25f083433
commit 7a2ceeedf4
4 changed files with 7 additions and 7 deletions

View File

@ -1223,7 +1223,7 @@ void MainWindow::remoteHostChanged(const QString &newRemoteHost)
m_coreProcess.setAddress(newRemoteHost);
toggleCanRunCore(!newRemoteHost.isEmpty() && ui->rbModeClient->isChecked());
if (newRemoteHost.isEmpty()) {
Settings::setValue(Settings::Client::RemoteHost, QVariant());
Settings::setValue(Settings::Client::RemoteHost);
} else {
Settings::setValue(Settings::Client::RemoteHost, newRemoteHost);
}