mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 00:52:27 +02:00
Fixed private settings bug
This commit is contained in:
parent
076bd2dbee
commit
5f0f03af0a
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ QVariant SettingsScriptingInterface::getValue(const QString& setting) {
|
|||
if (!value.isValid()) {
|
||||
value = "";
|
||||
}
|
||||
if (_restrictPrivateValues || setting.startsWith(SETTINGS_FULL_PRIVATE_GROUP_NAME + "/")) {
|
||||
if (_restrictPrivateValues && setting.startsWith(SETTINGS_FULL_PRIVATE_GROUP_NAME + "/")) {
|
||||
value = "";
|
||||
}
|
||||
return value;
|
||||
|
@ -36,7 +36,7 @@ QVariant SettingsScriptingInterface::getValue(const QString& setting, const QVar
|
|||
if (!value.isValid()) {
|
||||
value = "";
|
||||
}
|
||||
if (_restrictPrivateValues || setting.startsWith(SETTINGS_FULL_PRIVATE_GROUP_NAME + "/")) {
|
||||
if (_restrictPrivateValues && setting.startsWith(SETTINGS_FULL_PRIVATE_GROUP_NAME + "/")) {
|
||||
value = "";
|
||||
}
|
||||
return value;
|
||||
|
|
Loading…
Reference in a new issue