mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-08-10 04:20:58 +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() {
|
void Interface::deinit() {
|
||||||
if (privateInstance) {
|
if (_isInitialized && privateInstance) {
|
||||||
// Save value to disk
|
// Save value to disk
|
||||||
save();
|
save();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue