]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/XGUI/XGUI_DataModel.cpp
Salome HOME
Fix for crash with data tree
[modules/shaper.git] / src / XGUI / XGUI_DataModel.cpp
index 6594e26ef8491a73eb3440da589695ef0fbc8c38..32548038ce2b4ab3cb3be13906c04d5f89a73e8c 100644 (file)
@@ -446,3 +446,10 @@ DocumentPtr XGUI_DataModel::document(const QModelIndex& theIndex) const
   ModuleBase_ITreeNode* aNode = (ModuleBase_ITreeNode*)theIndex.internalPointer();
   return aNode->document();
 }
+
+
+//******************************************************
+bool XGUI_DataModel::hasNode(ModuleBase_ITreeNode* theNode) const
+{
+  return myRoot->hasSubNode(theNode);
+}