Merge pull request #12465 from birarda/feat/content-settings

fix restore of object settings for content or domain settings
This commit is contained in:
Clément Brisset 2018-02-21 18:15:09 -08:00 committed by GitHub
commit 8f7944522f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1298,6 +1298,9 @@ bool DomainServerSettingsManager::restoreSettingsFromObject(QJsonObject settings
}
} else {
// we have a value to restore, use update setting to set it
// but clear the existing value first so that no merging between the restored settings
// and existing settings occurs
variantValue->clear();
// we might need to re-grab config group map in case it didn't exist when we looked for it before
// but was created by the call to valueForKeyPath before