mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 16:23:39 +02:00
Fix settings getting reset
fixes bugzid:531 When a setting handle was created but never initialized/used, it would override the current value with the default value on destruction.
This commit is contained in:
parent
4df4829280
commit
10c412d8c7
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ namespace Setting {
|
|||
}
|
||||
|
||||
void Interface::deinit() {
|
||||
if (privateInstance) {
|
||||
if (_isInitialized && privateInstance) {
|
||||
// Save value to disk
|
||||
save();
|
||||
|
||||
|
|
Loading…
Reference in a new issue