From 430da02d724db43c2c8efb7a0793950f0dba2679 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 24 Apr 2015 19:18:20 +0300 Subject: [PATCH] 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 --- src/XGUI/XGUI_ActionsMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.2