CHANGED: #1471 Need to serialize root group first, otherwise client crashes when loading the pointer settings.

This commit is contained in:
dfighter1985 2012-08-19 03:13:16 +02:00
parent c53fccf7c2
commit 2458968643

View file

@ -43,6 +43,13 @@ namespace GUIEditor
return false;
}
if( mg->serializeGroup( root, "root" ) == NULL )
{
xmlFreeNode( root );
out.close();
return false;
}
if( !CWidgetManager::getInstance()->serializeOptions( root ) )
{
xmlFreeNode( root );
@ -81,12 +88,6 @@ namespace GUIEditor
return false;
}
if( mg->serializeGroup( root, "root" ) == NULL )
{
xmlFreeNode( root );
out.close();
return false;
}
if( mg->serializeSubGroups( root ) == NULL )
{