]> git.lyx.org Git - features.git/blobdiff - src/Buffer.cpp
If a master is being created at loading the child, un-hide it.
[features.git] / src / Buffer.cpp
index e05c4d07bb96e2373dbe1d50f41c64d49d1a93d1..3030340dfc663d19fee3065e2ebf581a4075bc6b 100644 (file)
@@ -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()));
                        }
                }
        }