From 2781c54ace362236f46d0cca907442982ff36147 Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 11 Mar 2008 11:55:28 +0000 Subject: [PATCH] Update Object Browser in loadDocument (bug 18574) --- src/SalomeApp/SalomeApp_Study.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SalomeApp/SalomeApp_Study.cxx b/src/SalomeApp/SalomeApp_Study.cxx index 840e44247..459bc4ac2 100644 --- a/src/SalomeApp/SalomeApp_Study.cxx +++ b/src/SalomeApp/SalomeApp_Study.cxx @@ -121,9 +121,9 @@ bool SalomeApp_Study::openDocument( const QString& theFileName ) ModelList dm_s; dataModels( dm_s ); QListIterator it( dm_s ); - while ( it.hasNext() ) + while ( it.hasNext() ) openDataModel( studyName(), it.next() ); - + // this will build a SUIT_DataObject-s tree under myRoot member field // passing "false" in order NOT to rebuild existing data models' trees - it was done in previous step // but tree that corresponds to not-loaded data models will be updated any way. @@ -141,6 +141,7 @@ bool SalomeApp_Study::openDocument( const QString& theFileName ) SalomeApp_VisualState( (SalomeApp_Application*)application() ).restoreState( savePoints[savePoints.size()-1] ); } + ((SalomeApp_Application*)application())->updateObjectBrowser( true ); return res; } @@ -187,7 +188,6 @@ bool SalomeApp_Study::loadDocument( const QString& theStudyName ) } //SRN: BugID IPAL9021: End - return res; } -- 2.39.2