From: nds Date: Fri, 24 Apr 2015 16:18:20 +0000 (+0300) Subject: The bug fix: the enable state of nested sketch actions until sketch plane is not... X-Git-Tag: V_1.2.0~180^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=430da02d724db43c2c8efb7a0793950f0dba2679;p=modules%2Fshaper.git The bug fix: the enable state of nested sketch actions until sketch plane is not selected yet. It has been also integrated in 1.1.1 branch --- diff --git a/src/XGUI/XGUI_ActionsMgr.cpp b/src/XGUI/XGUI_ActionsMgr.cpp index bdc91203b..1abb8dd70 100644 --- a/src/XGUI/XGUI_ActionsMgr.cpp +++ b/src/XGUI/XGUI_ActionsMgr.cpp @@ -141,11 +141,11 @@ void XGUI_ActionsMgr::updateOnViewSelection() //QString aFeatureId = QString::fromStdString(anActiveFeature->getKind()); XGUI_Selection* aSelection = myWorkshop->selector()->selection(); if (aSelection->getSelected().size() == 0) { - foreach(QString aFeatureId, aIdList) { + /*foreach(QString aFeatureId, aIdList) { foreach(QString aId, nestedCommands(aFeatureId)) { setActionEnabled(aId, true); } - } + }*/ } else { SessionPtr aMgr = ModelAPI_Session::get(); ModelAPI_ValidatorsFactory* aFactory = aMgr->validators();