Merge branch 'master' into issue-6758-tls-path
This commit is contained in:
commit
9af1db72f9
2 changed files with 12 additions and 1 deletions
|
|
@ -3,6 +3,8 @@ v1.12.x-snapshot
|
|||
Bug fixes:
|
||||
- #6753 Fixed a number of vulnerabilities detected by static analysis
|
||||
- #6758 Account name with space on windows causes synergy to error when starting
|
||||
- #6760 Synergy loses license when creating a System scope config
|
||||
|
||||
|
||||
Enhancements:
|
||||
- #6750 Integrate SonarCloud for static analysis and test coverage
|
||||
|
|
|
|||
|
|
@ -238,7 +238,6 @@ void AppConfig::loadSettings()
|
|||
m_ActivateEmail = loadSetting(kActivateEmail, "").toString();
|
||||
m_CryptoEnabled = loadSetting(kCryptoEnabled, true).toBool();
|
||||
m_AutoHide = loadSetting(kAutoHide, false).toBool();
|
||||
m_Serialkey = loadSetting(kSerialKey, "").toString().trimmed();
|
||||
m_lastVersion = loadSetting(kLastVersion, "Unknown").toString();
|
||||
m_LastExpiringWarningTime = loadSetting(kLastExpireWarningTime, 0).toInt();
|
||||
m_ActivationHasRun = loadSetting(kActivationHasRun, false).toBool();
|
||||
|
|
@ -251,6 +250,16 @@ void AppConfig::loadSettings()
|
|||
m_ClientGroupChecked = loadSetting(kGroupClientCheck, true).toBool();
|
||||
m_ServerHostname = loadSetting(kServerHostname).toString();
|
||||
|
||||
//only change the serial key if the settings being loaded contains a key
|
||||
bool updateSerial = GUI::Config::ConfigWriter::make()
|
||||
->hasSetting(settingName(kLoadSystemSettings),GUI::Config::ConfigWriter::kCurrent);
|
||||
//if the setting exists and is not empty
|
||||
updateSerial = updateSerial && !loadSetting(kSerialKey, "").toString().trimmed().isEmpty();
|
||||
|
||||
if (updateSerial) {
|
||||
m_Serialkey = loadSetting(kSerialKey, "").toString().trimmed();
|
||||
}
|
||||
|
||||
//Set the default path of the TLS certificate file in the users DIR
|
||||
QString certificateFilename = QString("%1/%2/%3").arg(m_CoreInterface.getProfileDir(),
|
||||
"SSL",
|
||||
|
|
|
|||
Loading…
Reference in a new issue