]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_PluginManager.cxx
Salome HOME
Added the hasRootDocument method for GUI NewDocument checking
[modules/shaper.git] / src / Model / Model_PluginManager.cxx
index ea0b826a646015a0606057a963dbf1d6848248c7..724f30e2639c812c5af0569a209a28f09259f6cc 100644 (file)
@@ -43,6 +43,11 @@ std::shared_ptr<ModelAPI_Document> Model_PluginManager::rootDocument()
     Model_Application::getApplication()->getDocument("root"));
 }
 
+bool Model_PluginManager::hasRootDocument()
+{
+  return Model_Application::getApplication()->hasDocument("root");
+}
+
 shared_ptr<ModelAPI_Document> Model_PluginManager::currentDocument()
 {
   if (!myCurrentDoc)