Document/PropertyExpressionEngine: Added onDocumentRestored function, to update internals of PropertyExpressionEngine after loading a document from disk.

This commit is contained in:
Eivind Kvedalen
2015-12-24 14:38:50 +01:00
parent b6d5c668b0
commit 495b23209c
3 changed files with 24 additions and 9 deletions

View File

@@ -1274,6 +1274,7 @@ Document::importObjects(Base::XMLReader& reader)
// reset all touched
for (std::vector<DocumentObject*>::iterator it= objs.begin();it!=objs.end();++it) {
(*it)->onDocumentRestored();
(*it)->ExpressionEngine.onDocumentRestored();
(*it)->purgeTouched();
}
return objs;
@@ -1488,6 +1489,7 @@ void Document::restore (void)
for (std::map<std::string,DocumentObject*>::iterator It= d->objectMap.begin();It!=d->objectMap.end();++It) {
It->second->connectRelabelSignals();
It->second->onDocumentRestored();
It->second->ExpressionEngine.onDocumentRestored();
It->second->purgeTouched();
}