]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1744: Get selection from all controls
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 19 Jan 2017 09:04:22 +0000 (12:04 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 19 Jan 2017 09:04:22 +0000 (12:04 +0300)
src/XGUI/XGUI_ActionsMgr.cpp

index b86390dda0be144e41f554fb743d31eb8d3a36ed..d9b264babd7bef0cbb61edd5c1c9ba816374bcd9 100644 (file)
@@ -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();