Salome HOME
Avoid crash on clearing of a document by a script
[modules/shaper.git] / src / PartSet / PartSet_TreeNodes.cpp
index a4381a3f7109fea49c47afccc1b31a7cef192b2d..92d25db69152fea370540718a10e4e6f84b308b3 100644 (file)
@@ -948,7 +948,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 : aNullFlag;
+    return (theColumn == 2) ? Qt::ItemIsSelectable : aDefaultFlag;
 
   SessionPtr aSession = ModelAPI_Session::get();
   DocumentPtr aActiveDoc = aSession->activeDocument();