From 4d49239e7c59223a0263ab3c2f4026e8b3a2ffeb Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 27 Feb 2015 19:18:15 +0300 Subject: [PATCH] Key_Delete shortcut for both delete action - 1. workshop, 2. partset module. --- src/XGUI/XGUI_Workshop.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.2