]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix a bug with disabling of selection in another modules
authorvsv <vsv@opencascade.com>
Thu, 23 Jan 2020 12:25:04 +0000 (15:25 +0300)
committervsv <vsv@opencascade.com>
Mon, 27 Jan 2020 12:41:32 +0000 (15:41 +0300)
src/SHAPERGUI/SHAPERGUI.cpp

index 8b4338b65d2eaf0b60efcabbaf54ddc3254ac110..117e561d2bb0b258f9f5e14b57d583659d966f25 100644 (file)
@@ -415,6 +415,14 @@ bool SHAPERGUI::deactivateModule(SUIT_Study* theStudy)
     //}
     myWorkshop->displayer()->setSelectionColor(myOldSelectionColor);
     myProxyViewer->setSelector(0);
+
+    LightApp_SelectionMgr* aMgr = getApp()->selectionMgr();
+    QList<SUIT_Selector*> aList;
+    aMgr->selectors(aList);
+    foreach(SUIT_Selector* aSel, aList) {
+      aSel->setEnabled(aSel != mySelector);
+    }
+
     delete mySelector;
     mySelector = 0;
   }