This commit is contained in:
doitux
2007-05-05 21:25:50 +00:00
parent 82b5392ff5
commit 9a10079f44
+4 -8
View File
@@ -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;