Salome HOME
Refs #288 - the profile section selected and addition mode is activated
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Operations.cxx
index 829ca2adb65fcd22b2620bceab60780ac26db7a7..d2a7d3f42c665707dd0988b5a77939f3066202db 100644 (file)
@@ -106,6 +106,7 @@ void HYDROGUI_Module::createActions()
   createAction( PasteId, "PASTE", "", Qt::CTRL + Qt::Key_V );
 
   createAction( UpdateObjectId, "UPDATE_OBJECT" );
+  createAction( ForcedUpdateObjectId, "FORCED_UPDATE_OBJECT" );
 
   createAction( ImportImageId, "IMPORT_IMAGE", "IMPORT_IMAGE_ICO", Qt::CTRL + Qt::Key_I );
   createAction( EditImportedImageId, "EDIT_IMPORTED_IMAGE", "EDIT_IMPORTED_IMAGE_ICO" );
@@ -390,7 +391,8 @@ LightApp_Operation* HYDROGUI_Module::createOperation( const int theId ) const
     anOp = new HYDROGUI_ExportImageOp( aModule );
     break;
   case UpdateObjectId:
-    anOp = new HYDROGUI_UpdateObjectOp( aModule );
+  case ForcedUpdateObjectId:
+    anOp = new HYDROGUI_UpdateObjectOp( aModule, theId == ForcedUpdateObjectId );
     break;
   case RemoveImageRefsId:
     anOp = new HYDROGUI_RemoveImageRefsOp( aModule );