]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix a bug with closing of an operation by Del button press
authorvsv <vsv@opencascade.com>
Thu, 30 Jan 2020 13:39:14 +0000 (16:39 +0300)
committervsv <vsv@opencascade.com>
Thu, 30 Jan 2020 13:39:14 +0000 (16:39 +0300)
src/XGUI/XGUI_Workshop.cpp

index 6bd2844a7f4c76d92169859d0d74d5f0e45e19c1..dca26d8ddb556228f8357f5d55c4c7f2009f7e05 100644 (file)
@@ -1860,6 +1860,9 @@ void XGUI_Workshop::deleteObjects()
   }
 
   QObjectPtrList anObjects = mySelector->selection()->selectedObjects();
+  if (anObjects.isEmpty())
+    return;
+
   if (!abortAllOperations())
     return;