From b67ffeaab72d4735afa7693cd5d804557bd7ba0c Mon Sep 17 00:00:00 2001 From: ouv Date: Wed, 7 Aug 2013 09:38:02 +0000 Subject: [PATCH] To make the Object Browser always opened on level 3. --- src/HYDROGUI/HYDROGUI_DataModel.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 ) -- 2.39.2