Merge pull request #6731 from symless/issue-6730-update-config

Changed user scope setting location back
This commit is contained in:
Jnewbon 2020-07-22 10:32:31 +01:00 committed by GitHub
commit 6991e908f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,9 @@
v1.12.0-rc2
===========
Bug fixes:
- #6730 Updating synergy looses settings
v1.12.0-rc1
===========

View file

@ -7,7 +7,7 @@ cmake_minimum_required (VERSION 3.4)
set (SYNERGY_VERSION_MAJOR 1)
set (SYNERGY_VERSION_MINOR 12)
set (SYNERGY_VERSION_PATCH 0)
set (SYNERGY_VERSION_STAGE "rc1")
set (SYNERGY_VERSION_STAGE "rc2")
#
# Version from CI

View file

@ -51,9 +51,10 @@ namespace GUI {
QCoreApplication::organizationName(),
QCoreApplication::applicationName());
m_pSettingsUser = new QSettings(QSettings::Scope::UserScope,
QCoreApplication::organizationName(),
QCoreApplication::applicationName());
//defaults to user scope, if we set the scope specifically then we also have to set
// the application name and the organisation name which breaks backwards compatibility
// See #6730
m_pSettingsUser = new QSettings();
//Set scope to user for initially
m_pSettingsCurrent = m_pSettingsUser;