From d9b2fd28e94483abadcd9ceb984df2e36cfaadc2 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 c9fffc916..e9e7c0c0f 100644 --- a/src/SHAPERGUI/SHAPERGUI.cpp +++ b/src/SHAPERGUI/SHAPERGUI.cpp @@ -417,6 +417,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