From: vsv Date: Thu, 23 Jan 2020 12:25:04 +0000 (+0300) Subject: Fix a bug with disabling of selection in another modules X-Git-Tag: V9_5_0a1~17^2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f7e137698290da6c133f065c3b3a682ad30aff4f;p=modules%2Fshaper.git Fix a bug with disabling of selection in another modules --- 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; }