From eca46466f2901846c2840cbfadaa77c8637509fd Mon Sep 17 00:00:00 2001 From: srn Date: Mon, 22 Aug 2005 05:03:04 +0000 Subject: [PATCH] Added an update of the toolbar after the Import operation. --- src/GEOMToolsGUI/GEOMToolsGUI.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/GEOMToolsGUI/GEOMToolsGUI.cxx b/src/GEOMToolsGUI/GEOMToolsGUI.cxx index 473ccd7ec..fd2482126 100644 --- a/src/GEOMToolsGUI/GEOMToolsGUI.cxx +++ b/src/GEOMToolsGUI/GEOMToolsGUI.cxx @@ -349,7 +349,7 @@ void GEOMToolsGUI::OnEditDelete() } // if ( selected not empty ) } // if ( selMgr && appStudy ) - app->updateActions(); //SRN: BugID IPAL9377, case 1 for GEOM module + app->updateActions(); //SRN: To update a Save button in the toolbar } // if ( app ) @@ -403,7 +403,8 @@ void GEOMToolsGUI::OnEditCopy() //===================================================================================== bool GEOMToolsGUI::Import() { - SUIT_Application* app = getGeometryGUI()->getApp(); + SalomeApp_Application* app = dynamic_cast< SalomeApp_Application* >( getGeometryGUI()->getApp() ); + //SUIT_Application* app = getGeometryGUI()->getApp(); if (! app) return false; SalomeApp_Study* stud = dynamic_cast ( app->activeStudy() ); @@ -493,6 +494,8 @@ bool GEOMToolsGUI::Import() return false; } + app->updateActions(); //SRN: To update a Save button in the toolbar + return true; } -- 2.39.2