Merge pull request #20058 from tritao/fix-app-document-main-doc-load
App: Fix regression for document creation requests coming from the main document.
This commit is contained in:
@@ -2592,9 +2592,10 @@ App::Document* Application::reopen(App::Document* doc)
|
||||
}
|
||||
|
||||
for (auto& file : docs) {
|
||||
App::DocumentCreateFlags createFlags;
|
||||
createFlags.createView = false;
|
||||
App::GetApplication().openDocument(file.c_str(), createFlags);
|
||||
App::DocumentInitFlags initFlags {
|
||||
.createView = false
|
||||
};
|
||||
App::GetApplication().openDocument(file.c_str(), initFlags);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user