Salome HOME
add 'undo' shorcut on Hide Faces panel selection. WARNING The delete feature is stran...
[modules/shaper.git] / src / XGUI / XGUI_Workshop.cpp
index 5ca15dc330cc3de54f38762468c5379594d7e8c6..5bc03f55e400376054edb046022690c7cc4d7941 100644 (file)
@@ -1212,6 +1212,15 @@ void XGUI_Workshop::processUndoRedo(const ModuleBase_ActionType theActionType, i
     if (anActiveWidget->processAction(theActionType, aParam))
       return;
   }
+  else
+  {
+    XGUI_FacesPanel *  anFacePannel = facesPanel();
+    if(ActionUndo == theActionType && anFacePannel->isActivePanel())
+    {
+      anFacePannel->processUndo();
+      return;
+    }
+  }
   // the viewer update should be blocked in order to avoid the features blinking. For the created
   // feature a results are created, the flush of the created signal caused the viewer redisplay for
   // each created result. After a redisplay signal is flushed. So, the viewer update is blocked
@@ -3258,4 +3267,4 @@ void XGUI_Workshop::changeIsoLines(const QObjectPtrList& theObjects)
     aMgr->finishOperation();
     updateCommandStatus();
   }
-}
\ No newline at end of file
+}