From a368439bcc3fbd18b4635d1b7c12da08b9315e2c Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Fri, 1 Jun 2018 10:17:18 +0200 Subject: [PATCH] If a master is being created at loading the child, un-hide it. Fixes: #11162 --- src/Buffer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index e05c4d07bb..3030340dfc 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -1041,6 +1041,10 @@ bool Buffer::readDocument(Lexer & lex) << absFileName() << ") does not include " "this document. Ignoring the master assignment."); + // If the master has just been created, un-hide it (#11162) + if (!master->fileName().exists()) + lyx::dispatch(FuncRequest(LFUN_BUFFER_SWITCH, + master->absFileName())); } } } -- 2.39.2