From: vsv Date: Mon, 29 Oct 2018 08:20:07 +0000 (+0300) Subject: Issue #2678: Disable parts outside of a history X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e29b783912fb8f75db8d5e9a5389617596ca073b;p=modules%2Fshaper.git Issue #2678: Disable parts outside of a history --- 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();