This commit is contained in:
@@ -139,15 +139,9 @@ void ConfigFile::updateConfig(CONFIGSTATE myConfigState) {
|
||||
|
||||
QtToolsInterface *myQtToolsInterface = new QtToolsWrapper;
|
||||
|
||||
if(myConfigState == old) {
|
||||
configFileName += "config.xml";
|
||||
TiXmlDocument doc(configFileName);
|
||||
TiXmlHandle docHandle( &doc );
|
||||
TiXmlElement* conf = docHandle.FirstChild( "PokerTH" ).FirstChild( "Configuration" ).FirstChild( "ConfigRevision" ).ToElement();
|
||||
if(myConfigState == nonexisting) {
|
||||
|
||||
}
|
||||
|
||||
//Anlegen!
|
||||
//Create!
|
||||
TiXmlDocument doc;
|
||||
TiXmlDeclaration * decl = new TiXmlDeclaration( "1.0", "UTF-8", "");
|
||||
doc.LinkEndChild( decl );
|
||||
@@ -299,6 +293,8 @@ void ConfigFile::updateConfig(CONFIGSTATE myConfigState) {
|
||||
|
||||
doc.SaveFile( configFileName );
|
||||
|
||||
}
|
||||
|
||||
delete myQtToolsInterface;
|
||||
myQtToolsInterface = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user