refactor: Remove unneeded QVariant() when setting a setting empty to be removed
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user