]> 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>
Mon, 8 Oct 2018 09:43:20 +0000 (11:43 +0200)
Fixes: #11162
(cherry picked from commit a368439bcc3fbd18b4635d1b7c12da08b9315e2c)

src/Buffer.cpp
status.23x

index 6d0fd4f17d8b8292c065f4ac06dac22c7becf1de..583d3db52b86c2716f5c52445d569109e6d6f800 100644 (file)
@@ -1052,6 +1052,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()));
                        }
                }
        }
index 654d0993114425f6f50032c61bb0c58db04ab448..3091f06bd1383127d2b7214296304698bc542685 100644 (file)
@@ -70,6 +70,8 @@ What's new
 
 - GuiCitation: Don't reset filter on show (bug 11291).
 
+- If a master is being created at loading the child, un-hide it (bug 11162).
+
 
 * DOCUMENTATION AND LOCALIZATION