From: vsv Date: Tue, 11 Mar 2008 11:55:28 +0000 (+0000) Subject: Update Object Browser in loadDocument (bug 18574) X-Git-Tag: V5_0_0a1~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2781c54ace362236f46d0cca907442982ff36147;p=modules%2Fgui.git Update Object Browser in loadDocument (bug 18574) --- 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; }