From: nds Date: Fri, 27 Feb 2015 16:18:15 +0000 (+0300) Subject: Key_Delete shortcut for both delete action - 1. workshop, 2. partset module. X-Git-Tag: V_1.1.0~154 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4d49239e7c59223a0263ab3c2f4026e8b3a2ffeb;p=modules%2Fshaper.git Key_Delete shortcut for both delete action - 1. workshop, 2. partset module. --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index a39f05aaf..52472194c 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -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;