We don't need to reload a dirty file. Fixes #11788.

This commit is contained in:
Richard Kimberly Heck 2021-01-03 19:58:19 -05:00
parent 0786b80828
commit e31eadfd37

View File

@ -4930,7 +4930,7 @@ void GuiDocument::dispatchParams()
FileName const master_file = support::makeAbsPath(params().master,
support::onlyPath(buffer().absFileName()));
if (isLyXFileName(master_file.absFileName())) {
Buffer * master = checkAndLoadLyXFile(master_file);
Buffer * master = checkAndLoadLyXFile(master_file, true);
if (master) {
if (master->isChild(const_cast<Buffer *>(&buffer())))
const_cast<Buffer &>(buffer()).setParent(master);