]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Update of the object browser added for "Import".
authormzn <mzn@opencascade.com>
Tue, 7 Jun 2005 07:07:32 +0000 (07:07 +0000)
committermzn <mzn@opencascade.com>
Tue, 7 Jun 2005 07:07:32 +0000 (07:07 +0000)
src/GEOMToolsGUI/GEOMToolsGUI.cxx

index 4463292d54eec263215c878b44ac29c74359d799..602010e3a5b2cc4addfd8230dc84e60edb83cdab 100644 (file)
@@ -471,6 +471,15 @@ bool GEOMToolsGUI::Import()
 
       GEOM_Displayer( stud ).Display( anObj.in() );
 
+      // update data model and object browser
+      SalomeApp_Application* anApp = dynamic_cast<SalomeApp_Application*>(app);
+      if (anApp) {
+       CAM_Module* module = anApp->module( "Geometry" );
+       SalomeApp_Module* appMod = dynamic_cast<SalomeApp_Module*>( module );
+       if ( appMod )
+         appMod->updateObjBrowser( true );
+      }
+
       anOp->commit();      
     }
     else {