From: mzn Date: Tue, 7 Jun 2005 07:07:32 +0000 (+0000) Subject: Update of the object browser added for "Import". X-Git-Tag: T3_0_0_a2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3ef9f0e473c271bb7174a634d7410087f0ce7549;p=modules%2Fgeom.git Update of the object browser added for "Import". --- diff --git a/src/GEOMToolsGUI/GEOMToolsGUI.cxx b/src/GEOMToolsGUI/GEOMToolsGUI.cxx index 4463292d5..602010e3a 100644 --- a/src/GEOMToolsGUI/GEOMToolsGUI.cxx +++ b/src/GEOMToolsGUI/GEOMToolsGUI.cxx @@ -471,6 +471,15 @@ bool GEOMToolsGUI::Import() GEOM_Displayer( stud ).Display( anObj.in() ); + // update data model and object browser + SalomeApp_Application* anApp = dynamic_cast(app); + if (anApp) { + CAM_Module* module = anApp->module( "Geometry" ); + SalomeApp_Module* appMod = dynamic_cast( module ); + if ( appMod ) + appMod->updateObjBrowser( true ); + } + anOp->commit(); } else {