]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2678: Disable parts outside of a history
authorvsv <vsv@opencascade.com>
Mon, 29 Oct 2018 08:20:07 +0000 (11:20 +0300)
committervsv <vsv@opencascade.com>
Mon, 29 Oct 2018 08:20:07 +0000 (11:20 +0300)
src/PartSet/PartSet_TreeNodes.cpp

index e8acf5f61d42c2321c4de8c27d13b1108de6bcce..3e0c734218ee4a90f8169b661affddeeaa4a1d00 100644 (file)
@@ -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();