Do not throw error when open an already opened document

This commit is contained in:
Zheng, Lei
2020-01-07 08:53:44 +08:00
committed by Yorik van Havre
parent fb036960ba
commit 10e7b3e80e
5 changed files with 81 additions and 16 deletions

View File

@@ -776,9 +776,8 @@ Document* Application::openDocumentPrivate(const char * FileName,
if(!isMainDoc)
return 0;
std::stringstream str;
str << "The project '" << FileName << "' is already open!";
throw Base::FileSystemError(str.str().c_str());
return it->second;
}
std::string name;