From 3ef9f0e473c271bb7174a634d7410087f0ce7549 Mon Sep 17 00:00:00 2001 From: mzn Date: Tue, 7 Jun 2005 07:07:32 +0000 Subject: [PATCH] Update of the object browser added for "Import". --- src/GEOMToolsGUI/GEOMToolsGUI.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) 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 { -- 2.39.2