]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
To make the Object Browser always opened on level 3.
authorouv <ouv@opencascade.com>
Wed, 7 Aug 2013 09:38:02 +0000 (09:38 +0000)
committerouv <ouv@opencascade.com>
Wed, 7 Aug 2013 09:38:02 +0000 (09:38 +0000)
src/HYDROGUI/HYDROGUI_DataModel.cxx

index 9d395a6a8f2ffd0d2072bde13c220b908f5ab3e4..60952405b862b42cee49366beede115457ae9edc 100644 (file)
@@ -166,9 +166,6 @@ void HYDROGUI_DataModel::update( const int theStudyId )
   if( !aStudyRoot )
     return;
 
-  if( SUIT_DataBrowser* anObjectBrowser = anApp->objectBrowser() )
-    anObjectBrowser->setAutoOpenLevel( 3 );
-
   // create root object if not exist
   CAM_DataObject* aRootObj = root();
   if( !aRootObj )
@@ -197,6 +194,12 @@ void HYDROGUI_DataModel::update( const int theStudyId )
     if( !anImageObj.IsNull() )
       createObject( anImageRootObj, anImageObj );
   }
+
+  if( SUIT_DataBrowser* anObjectBrowser = anApp->objectBrowser() )
+  {
+    anObjectBrowser->setAutoOpenLevel( 3 );
+    anObjectBrowser->openLevels();
+  }
 }
 
 HYDROGUI_DataObject* HYDROGUI_DataModel::getDataObject( const Handle(HYDROData_Object)& theModelObject )