+ bug fix similar to idea of pull request 111
This commit is contained in:
parent
d1b4f23388
commit
007a00b7f1
|
@ -443,10 +443,15 @@ Document* Application::openDocument(const char * FileName)
|
||||||
|
|
||||||
newDoc->FileName.setValue(File.filePath());
|
newDoc->FileName.setValue(File.filePath());
|
||||||
|
|
||||||
// read the document
|
try {
|
||||||
newDoc->restore();
|
// read the document
|
||||||
|
newDoc->restore();
|
||||||
return newDoc;
|
return newDoc;
|
||||||
|
}
|
||||||
|
catch (...) {
|
||||||
|
closeDocument(newDoc->getName());
|
||||||
|
throw;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Document* Application::getActiveDocument(void) const
|
Document* Application::getActiveDocument(void) const
|
||||||
|
|
Loading…
Reference in New Issue
Block a user