restore saved previous server (#4206)

fix #3617
This commit is contained in:
ebbit1q 2020-12-06 03:36:27 +01:00 committed by GitHub
parent 77be6a120c
commit 0ce813b826
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -50,7 +50,8 @@ QString ServersSettings::getSite(QString defaultSite)
QString ServersSettings::getPrevioushostName()
{
return getValue("previoushostName", "server").toString();
QVariant value = getValue("previoushostName", "server");
return value == QVariant() ? "Rooster Ranges" : value.toString();
}
int ServersSettings::getPrevioushostindex(const QString &saveName)