Sun, 29 Dec 2013 17:03:30 +0200
- when configuration options are default, they need to be removed from the settings
src/config.cc | file | annotate | diff | comparison | revisions |
--- a/src/config.cc Sun Dec 29 17:02:40 2013 +0200 +++ b/src/config.cc Sun Dec 29 17:03:30 2013 +0200 @@ -82,8 +82,11 @@ log ("Saving configuration to %1...\n", settings->fileName()); for (Config* cfg : g_configs) - if (!cfg->isDefault()) + { if (!cfg->isDefault()) settings->setValue (cfg->getName(), cfg->toVariant()); + else + settings->remove (cfg->getName()); + } settings->sync(); settings->deleteLater();