]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#1078 multiply selection with shift button pressed does not work
authornds <nds@opencascade.com>
Wed, 11 Nov 2015 13:51:23 +0000 (16:51 +0300)
committernds <nds@opencascade.com>
Wed, 11 Nov 2015 13:51:46 +0000 (16:51 +0300)
regression.

src/PartSet/PartSet_Module.cpp

index d52f41057c7be87ab608a9ebb8a13052552834c5..69d58a916dfc8cf1b39691db64bc5fe660149e3d 100755 (executable)
@@ -225,12 +225,16 @@ void PartSet_Module::operationCommitted(ModuleBase_Operation* theOperation)
 
   /// Restart sketcher operations automatically
   if (!mySketchReentrantMgr->operationCommitted(theOperation)) {
-    // the selection is cleared after commit the create operation
-    // in order to do not use the same selected objects in the restarted operation
-    // for common behaviour, the selection is cleared even if the operation is not restarted
-    XGUI_ModuleConnector* aConnector = dynamic_cast<XGUI_ModuleConnector*>(workshop());
-    XGUI_Workshop* aWorkshop = aConnector->workshop();
-    aWorkshop->selector()->clearSelection();
+
+    ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>(theOperation);
+    if (aFOperation && !aFOperation->isEditOperation()) {
+      // the selection is cleared after commit the create operation
+      // in order to do not use the same selected objects in the restarted operation
+      // for common behaviour, the selection is cleared even if the operation is not restarted
+      XGUI_ModuleConnector* aConnector = dynamic_cast<XGUI_ModuleConnector*>(workshop());
+      XGUI_Workshop* aWorkshop = aConnector->workshop();
+      aWorkshop->selector()->clearSelection();
+    }
   }
 }