]> git.lyx.org Git - features.git/commitdiff
If a master is being created at loading the child, un-hide it.
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 1 Jun 2018 08:17:18 +0000 (10:17 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 1 Jun 2018 08:17:18 +0000 (10:17 +0200)
Fixes: #11162
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()));
                        }
                }
        }