Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prepare version 1.2.1: quick fix for iteration 2 release
[modules/shaper.git]
/
src
/
Model
/
Model_Session.cpp
diff --git
a/src/Model/Model_Session.cpp
b/src/Model/Model_Session.cpp
index 921e964cb87be0d1a8d9abf15c2f53c9276378c6..04229f2c2257af2b46404547d8a463d4c23fe384 100644
(file)
--- a/
src/Model/Model_Session.cpp
+++ b/
src/Model/Model_Session.cpp
@@
-37,7
+37,7
@@
static Model_Session* myImpl = new Model_Session();
bool Model_Session::load(const char* theFileName)
{
bool Model_Session::load(const char* theFileName)
{
- bool aRes = ROOT_DOC->load(theFileName);
+ bool aRes = ROOT_DOC->load(theFileName
, ROOT_DOC
);
return aRes;
}
return aRes;
}
@@
-48,7
+48,6
@@
bool Model_Session::save(const char* theFileName, std::list<std::string>& theRes
void Model_Session::closeAll()
{
void Model_Session::closeAll()
{
- ROOT_DOC->close(true);
Model_Application::getApplication()->deleteAllDocuments();
}
Model_Application::getApplication()->deleteAllDocuments();
}
@@
-250,6
+249,11
@@
std::list<std::shared_ptr<ModelAPI_Document> > Model_Session::allOpenedDocuments
return aResult;
}
return aResult;
}
+bool Model_Session::isLoadByDemand(const std::string theDocID)
+{
+ return Model_Application::getApplication()->isLoadByDemand(theDocID);
+}
+
std::shared_ptr<ModelAPI_Document> Model_Session::copy(
std::shared_ptr<ModelAPI_Document> theSource, std::string theID)
{
std::shared_ptr<ModelAPI_Document> Model_Session::copy(
std::shared_ptr<ModelAPI_Document> theSource, std::string theID)
{