From dab5e73feae6a8535e85a1db60456ff36571b6c8 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 4 Jun 2014 15:10:41 +0400 Subject: [PATCH] It replaces direct names of construction and partset features to the specific kind. --- src/XGUI/XGUI_ContextMenuMgr.cpp | 2 +- src/XGUI/XGUI_Workshop.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/XGUI/XGUI_ContextMenuMgr.cpp b/src/XGUI/XGUI_ContextMenuMgr.cpp index 86a5d03e8..32c961026 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.cpp +++ b/src/XGUI/XGUI_ContextMenuMgr.cpp @@ -96,7 +96,7 @@ QMenu* XGUI_ContextMenuMgr::objectBrowserMenu() const FeaturePtr aFeature = aFeatures.first(); //Process Feature if (aFeature) { - if (aFeature->getKind() == PARTSET_PART_KIND) { + if (aFeature->getKind() == "Part") { ObjectPtr aObject = boost::dynamic_pointer_cast(aFeature); DocumentPtr aFeaDoc = aObject->featureRef()->data()->docRef("PartDocument")->value(); if (aMgr->currentDocument() == aFeaDoc) diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 8dec5d900..dfe77c6f8 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -228,7 +228,7 @@ void XGUI_Workshop::processEvent(const Events_Message* theMessage) bool aHasPart = false; for (aIt = aFeatures.begin(); aIt != aFeatures.end(); ++aIt) { FeaturePtr aFeature = (*aIt); - if (aFeature->getKind() == PARTSET_PART_KIND) { + if (aFeature->getKind() == "Part") { aHasPart = true; break; } -- 2.39.2