Optimize loading of projects with many document objects

This commit is contained in:
wmayer
2012-10-29 20:11:30 +01:00
parent 48df619e5e
commit 71bf1db879
4 changed files with 37 additions and 10 deletions

View File

@@ -999,6 +999,8 @@ void Document::restore (void)
if (!reader.isValid())
throw Base::FileException("Error reading compression file",FileName.getValue());
GetApplication().signalStartRestoreDocument(*this);
try {
Document::Restore(reader);
}
@@ -1019,7 +1021,7 @@ void Document::restore (void)
It->second->purgeTouched();
}
GetApplication().signalRestoreDocument(*this);
GetApplication().signalFinishRestoreDocument(*this);
}
bool Document::isSaved() const