X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetInclude.cpp;fp=src%2Finsets%2FInsetInclude.cpp;h=e21de4d4b8984a914a525b9f4e89e9fe714a853a;hb=b7ec3d8515b539260a16e9c5987c4116f4d1257c;hp=9c00bbaa34ededea7be7a6345d66bb619cc6ab81;hpb=dd27c0c4ee4ff666f35b41a6c4522e9b010e1b2f;p=lyx.git diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp index 9c00bbaa34..e21de4d4b8 100644 --- a/src/insets/InsetInclude.cpp +++ b/src/insets/InsetInclude.cpp @@ -460,8 +460,10 @@ Buffer * InsetInclude::loadIfNeeded() const Buffer * child = theBufferList().getBuffer(included_file); if (!child) { // the readonly flag can/will be wrong, not anymore I think. - if (!included_file.exists()) + if (!included_file.exists()) { + failedtoload_ = true; return 0; + } child = theBufferList().newBuffer(included_file.absFileName()); if (!child)