diff --git a/src/config/configfile.cpp b/src/config/configfile.cpp index 1b413472..14b4affb 100644 --- a/src/config/configfile.cpp +++ b/src/config/configfile.cpp @@ -499,14 +499,11 @@ void ConfigFile::updateConfig(ConfigState myConfigState) tmpElement->LinkEndChild( tmpSubElement ); tmpSubElement->SetAttribute("value", *it); } - } } - doc.SaveFile( configFileName ); } - if(myConfigState == OLD) { TiXmlDocument oldDoc(configFileName); @@ -564,7 +561,7 @@ void ConfigFile::updateConfig(ConfigState myConfigState) if ( oldConf ) { // if element is already there --> take over the saved values // dont update ConfigRevision and AppDataDir AND possible hacked Config-Elements becaus it was already set ^^ - if(!(bool)count(noUpdateElemtsList.begin(), noUpdateElemtsList.end(), configList[i].name)) { + if(count(noUpdateElemtsList.begin(), noUpdateElemtsList.end(), configList[i].name) == 0) { TiXmlElement *tmpElement = new TiXmlElement(configList[i].name); config->LinkEndChild( tmpElement );