From: srn Date: Mon, 22 Aug 2005 05:03:04 +0000 (+0000) Subject: Added an update of the toolbar after the Import operation. X-Git-Tag: T_3_0_2a1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=eca46466f2901846c2840cbfadaa77c8637509fd;p=modules%2Fgeom.git Added an update of the toolbar after the Import operation. --- 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; }