From d21498e245abc3f917c26c216b609a769783aa0c Mon Sep 17 00:00:00 2001 From: doitux Date: Mon, 9 Jan 2012 20:24:00 +0000 Subject: [PATCH] 0.9.1 version hack --> set loginterval to 1 --- src/config/configfile.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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 );