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~65 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d9b2fd28e94483abadcd9ceb984df2e36cfaadc2;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 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; }