]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Key_Delete shortcut for both delete action - 1. workshop, 2. partset module.
authornds <natalia.donis@opencascade.com>
Fri, 27 Feb 2015 16:18:15 +0000 (19:18 +0300)
committernds <natalia.donis@opencascade.com>
Fri, 27 Feb 2015 16:18:15 +0000 (19:18 +0300)
src/XGUI/XGUI_Workshop.cpp

index a39f05aaf5723a012aa129ca576c4e4181e471f3..52472194c16772346e0fc68dda56463031446ce7 100644 (file)
@@ -1290,6 +1290,11 @@ void XGUI_Workshop::activatePart(ResultPartPtr theFeature)
 //**************************************************************
 void XGUI_Workshop::deleteObjects(const QObjectPtrList& theList)
 {
+  // the active operation should not be aborted if there is an empty list of objects
+  // it is possible that delete shortcut should be processed in the active operation.
+  if (theList.empty())
+    return;
+
   if (!isActiveOperationAborted())
     return;