diff --git a/src/config/configfile.cpp b/src/config/configfile.cpp index 8156be76..1b413472 100644 --- a/src/config/configfile.cpp +++ b/src/config/configfile.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include #include @@ -558,20 +559,12 @@ void ConfigFile::updateConfig(ConfigState myConfigState) for (i=0; i take over the saved values // dont update ConfigRevision and AppDataDir AND possible hacked Config-Elements becaus it was already set ^^ - - if(configList[i].name != "ConfigRevision" && configList[i].name != "AppDataDir") { + if(!(bool)count(noUpdateElemtsList.begin(), noUpdateElemtsList.end(), configList[i].name)) { TiXmlElement *tmpElement = new TiXmlElement(configList[i].name); config->LinkEndChild( tmpElement );