Salome HOME
Issue #1062: Parameter value is thrown down in the point selector control
[modules/shaper.git] / src / XGUI / XGUI_ActionsMgr.cpp
index 83a388576ba9ef3969c0e449005cbd1f1434cd26..b25a6fb75ab96ed4e140ea528f1a6bbb6a904a68 100644 (file)
@@ -108,8 +108,8 @@ void XGUI_ActionsMgr::update()
       anActiveFeature = aFOperation->feature();
       if(anActiveFeature.get()) {
         setAllEnabled(false);
-        QString aFeatureId = QString::fromStdString(anActiveFeature->getKind());
-        setActionEnabled(aFeatureId, true);
+        //QString aFeatureId = QString::fromStdString(anActiveFeature->getKind());
+        //setActionEnabled(aFeatureId, true);
       }
       setNestedStackEnabled(aFOperation);
     } else {
@@ -118,9 +118,9 @@ void XGUI_ActionsMgr::update()
     }
     // TODO(SBH): Get defaults state of actions from XML and remove the following method
     updateByDocumentKind();
-    updateCheckState();
     updateByPlugins(anActiveFeature);
   }
+  updateCheckState();
 }
 
 void XGUI_ActionsMgr::updateCheckState()
@@ -306,7 +306,7 @@ void XGUI_ActionsMgr::setNestedStackEnabled(ModuleBase_Operation* theOperation)
     return;
   FeaturePtr aFeature = anOperation->feature();
   QString aFeatureId = QString::fromStdString(aFeature->getKind());
-  setActionEnabled(aFeatureId, true);
+  //setActionEnabled(aFeatureId, true);
   setNestedCommandsEnabled(true, aFeatureId);
 
   setNestedStackEnabled(myOperationMgr->previousOperation(theOperation));