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