From: vsv Date: Thu, 19 Jan 2017 09:04:22 +0000 (+0300) Subject: Issue #1744: Get selection from all controls X-Git-Tag: V_2.7.0~319 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cd5d5ade73af8a2d4fb53d8ad1537091fb7c77ed;p=modules%2Fshaper.git Issue #1744: Get selection from all controls --- diff --git a/src/XGUI/XGUI_ActionsMgr.cpp b/src/XGUI/XGUI_ActionsMgr.cpp index b86390dda..d9b264bab 100644 --- a/src/XGUI/XGUI_ActionsMgr.cpp +++ b/src/XGUI/XGUI_ActionsMgr.cpp @@ -101,8 +101,7 @@ void XGUI_ActionsMgr::updateCommandsStatus() { setAllEnabled(); XGUI_Selection* aSelection = myWorkshop->selector()->selection(); - //if (aSelection->getSelected(ModuleBase_ISelection::Viewer).size() > 0) - if (aSelection->getSelected().size() > 0) + if (aSelection->getSelected(ModuleBase_ISelection::AllControls).size() > 0) updateOnViewSelection(); FeaturePtr anActiveFeature = FeaturePtr();