Make sure that settings are written to config file when settings are removed.
authorJürgen Doser <jurgen.doser@gmail.com>
Tue, 22 Jan 2013 18:00:48 +0000 (19:00 +0100)
committerJürgen Doser <jurgen.doser@gmail.com>
Tue, 22 Jan 2013 18:05:46 +0000 (19:05 +0100)
Previously, settings where only written when a value has changed, and
removal of a setting value didn't count as a change.

src/settings.h

index 6d6db220c1871cbc496aca76c929e42103db2ef4..2b46676c6b7ae03a440b2a9870f4494b2599a51f 100644 (file)
@@ -244,7 +244,9 @@ public:
 
                        updated[name] = true;
                }
-
+               else //file contains a setting which is not in m_settings
+                       value_changed=true;
+                       
                return true;
        }