From: vsv Date: Thu, 30 Jan 2020 13:39:14 +0000 (+0300) Subject: Fix a bug with closing of an operation by Del button press X-Git-Tag: V9_5_0a1~49 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=16ee82f6812821813354df621a36bb4a211dcf00;p=modules%2Fshaper.git Fix a bug with closing of an operation by Del button press --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 6bd2844a7..dca26d8dd 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -1860,6 +1860,9 @@ void XGUI_Workshop::deleteObjects() } QObjectPtrList anObjects = mySelector->selection()->selectedObjects(); + if (anObjects.isEmpty()) + return; + if (!abortAllOperations()) return;