From: ouv Date: Wed, 7 Aug 2013 09:38:02 +0000 (+0000) Subject: To make the Object Browser always opened on level 3. X-Git-Tag: BR_hydro_v_0_1~129 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b67ffeaab72d4735afa7693cd5d804557bd7ba0c;p=modules%2Fhydro.git To make the Object Browser always opened on level 3. --- diff --git a/src/HYDROGUI/HYDROGUI_DataModel.cxx b/src/HYDROGUI/HYDROGUI_DataModel.cxx index 9d395a6a..60952405 100644 --- a/src/HYDROGUI/HYDROGUI_DataModel.cxx +++ b/src/HYDROGUI/HYDROGUI_DataModel.cxx @@ -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 )