From f7e137698290da6c133f065c3b3a682ad30aff4f Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 23 Jan 2020 15:25:04 +0300 Subject: [PATCH] Fix a bug with disabling of selection in another modules --- src/SHAPERGUI/SHAPERGUI.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/SHAPERGUI/SHAPERGUI.cpp b/src/SHAPERGUI/SHAPERGUI.cpp index 8b4338b65..117e561d2 100644 --- a/src/SHAPERGUI/SHAPERGUI.cpp +++ b/src/SHAPERGUI/SHAPERGUI.cpp @@ -415,6 +415,14 @@ bool SHAPERGUI::deactivateModule(SUIT_Study* theStudy) //} myWorkshop->displayer()->setSelectionColor(myOldSelectionColor); myProxyViewer->setSelector(0); + + LightApp_SelectionMgr* aMgr = getApp()->selectionMgr(); + QList aList; + aMgr->selectors(aList); + foreach(SUIT_Selector* aSel, aList) { + aSel->setEnabled(aSel != mySelector); + } + delete mySelector; mySelector = 0; } -- 2.39.2