From e29b783912fb8f75db8d5e9a5389617596ca073b Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 29 Oct 2018 11:20:07 +0300 Subject: [PATCH] Issue #2678: Disable parts outside of a history --- src/PartSet/PartSet_TreeNodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PartSet/PartSet_TreeNodes.cpp b/src/PartSet/PartSet_TreeNodes.cpp index e8acf5f61..3e0c73421 100644 --- a/src/PartSet/PartSet_TreeNodes.cpp +++ b/src/PartSet/PartSet_TreeNodes.cpp @@ -947,7 +947,7 @@ QVariant PartSet_PartRootNode::data(int theColumn, int theRole) const Qt::ItemFlags PartSet_PartRootNode::flags(int theColumn) const { if (myObject->isDisabled()) - return (theColumn == 2) ? Qt::ItemIsSelectable : aDefaultFlag; + return (theColumn == 2) ? Qt::ItemIsSelectable : aNullFlag; SessionPtr aSession = ModelAPI_Session::get(); DocumentPtr aActiveDoc = aSession->activeDocument(); -- 2.39.2