From 456e64d3e092115913b350dec61f844ff2afede8 Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Sun, 19 Aug 2012 03:13:16 +0200 Subject: [PATCH] CHANGED: #1471 Need to serialize root group first, otherwise client crashes when loading the pointer settings. --- .../src/plugins/gui_editor/widget_serializer.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/widget_serializer.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/widget_serializer.cpp index 3601ab0c7..445fa184e 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/widget_serializer.cpp +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/widget_serializer.cpp @@ -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 ) {