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