Added an update of the toolbar after the Import operation.

This commit is contained in:
srn 2005-08-22 05:03:04 +00:00
parent 5646516f46
commit eca46466f2

View File

@ -349,7 +349,7 @@ void GEOMToolsGUI::OnEditDelete()
} // if ( selected not empty ) } // if ( selected not empty )
} // if ( selMgr && appStudy ) } // 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 ) } // if ( app )
@ -403,7 +403,8 @@ void GEOMToolsGUI::OnEditCopy()
//===================================================================================== //=====================================================================================
bool GEOMToolsGUI::Import() 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; if (! app) return false;
SalomeApp_Study* stud = dynamic_cast<SalomeApp_Study*> ( app->activeStudy() ); SalomeApp_Study* stud = dynamic_cast<SalomeApp_Study*> ( app->activeStudy() );
@ -493,6 +494,8 @@ bool GEOMToolsGUI::Import()
return false; return false;
} }
app->updateActions(); //SRN: To update a Save button in the toolbar
return true; return true;
} }