X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fcontrollers%2FControlInclude.C;h=7e497b9fd55b67fd6cbfd490506cded52abe3ecb;hb=da65e2b7fbe29c5bca2812a56d5bbdb7efb702e5;hp=9bbcbffddb76f8af8f207b840f35529f86b48ed4;hpb=41d309b6fb7a397e611f3aa16597ca92c70aa03c;p=lyx.git diff --git a/src/frontends/controllers/ControlInclude.C b/src/frontends/controllers/ControlInclude.C index 9bbcbffddb..7e497b9fd5 100644 --- a/src/frontends/controllers/ControlInclude.C +++ b/src/frontends/controllers/ControlInclude.C @@ -101,7 +101,7 @@ void ControlInclude::load(string const & file) { string const ext = support::getExtension(file); if (ext == "lyx") - kernel().dispatch(FuncRequest(LFUN_CHILDOPEN, file)); + kernel().dispatch(FuncRequest(LFUN_BUFFER_CHILD_OPEN, file)); else // tex file or other text file in verbatim mode formats.edit(kernel().buffer(), file, "text");