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:
Atlante45 2016-05-16 18:43:59 -07:00
parent 4df4829280
commit 10c412d8c7

View file

@ -97,7 +97,7 @@ namespace Setting {
}
void Interface::deinit() {
if (privateInstance) {
if (_isInitialized && privateInstance) {
// Save value to disk
save();