From: Juergen Spitzmueller Date: Fri, 1 Jun 2018 08:17:18 +0000 (+0200) Subject: If a master is being created at loading the child, un-hide it. X-Git-Tag: lyx-2.4.0dev-acb2ca7b~3383 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a368439bcc3fbd18b4635d1b7c12da08b9315e2c;p=features.git If a master is being created at loading the child, un-hide it. Fixes: #11162 --- 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())); } } }