]> 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>
Thu, 23 Jan 2020 12:25:19 +0000 (15:25 +0300)
src/SHAPERGUI/SHAPERGUI.cpp

index c9fffc916452dd9f1c75b2e122f8db374968198a..e9e7c0c0fddcea68b262c31c391c3977330e9f70 100644 (file)
@@ -417,6 +417,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;
   }