]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fixed bug with non active shape after import operation
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 16 Apr 2015 16:14:29 +0000 (19:14 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 16 Apr 2015 16:14:29 +0000 (19:14 +0300)
src/XGUI/XGUI_Workshop.cpp

index eda3869245186db1cd2e1090526b5f686bbb07a3..b15dcffa8a2bd0317993c408b64639f5fc2f6dda 100644 (file)
@@ -677,6 +677,12 @@ void XGUI_Workshop::onOperationStopped(ModuleBase_Operation* theOperation)
   //QIntList aModes;
   //myDisplayer->activateObjects(aModes);
   myModule->operationStopped(theOperation);
+
+  if (myOperationMgr->operationsCount() == 0) {
+    // Activate selection mode for all objects
+    QIntList aModes;
+    myDisplayer->activateObjects(aModes);
+  }
 }