]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Disable button of active operation.
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 6 Nov 2015 15:55:42 +0000 (18:55 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 6 Nov 2015 15:55:53 +0000 (18:55 +0300)
src/XGUI/XGUI_ActionsMgr.cpp

index 968457ffe19d1e90074e8f6158a4f4b5223ab051..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 {
@@ -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));