From 668b0acc0080f3d804556dc06504e2d61c774e09 Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Fri, 7 Mar 2025 20:40:24 +0000 Subject: [PATCH] App: Fix regression when creating new document coming from the main document. --- src/App/Application.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/App/Application.cpp b/src/App/Application.cpp index c074bf3ac4..bde2e13be4 100644 --- a/src/App/Application.cpp +++ b/src/App/Application.cpp @@ -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);