App: Fix regression when creating new document coming from the main document.

This commit is contained in:
Joao Matos
2025-03-07 20:40:24 +00:00
parent 6dd5246fa1
commit 08564607c2

View File

@@ -994,6 +994,7 @@ Document* Application::openDocumentPrivate(const char * FileName,
if(!label)
label = name.c_str();
initFlags.createView &= isMainDoc;
Document* newDoc = newDocument(name.c_str(), label, initFlags);
newDoc->FileName.setValue(propFileName==FileName?File.filePath():propFileName);