Author: forenr
Date: Mon Mar 7 15:36:22 2011
New Revision: 37869
URL: http://www.lyx.org/trac/changeset/37869
Log:
Fix bug #7343 (No warning for missing child documents)
Modified:
lyx-devel/trunk/src/insets/InsetInclude.cpp
Modified: lyx-devel/trunk/src/insets/InsetInclude.cpp
==============================================================================
--- lyx-devel/trunk/src/insets/InsetInclude.cpp Mon Mar 7 10:47:05 2011
(r37868)
+++ lyx-devel/trunk/src/insets/InsetInclude.cpp Mon Mar 7 15:36:22 2011
(r37869)
@@ -555,8 +555,14 @@
// try to load it so we can write the associated latex
Buffer * tmp = loadIfNeeded();
- if (!tmp)
+ if (!tmp) {
+ docstring text = bformat(_("Could not load included "
+ "file\n`%1$s'\n"
+ "Please, check whether it actually exists."),
+ included_file.displayName());
+ Alert::warning(_("Missing included file"), text);
return;
+ }
if (tmp->params().baseClass() !=
masterBuffer->params().baseClass()) {
// FIXME UNICODE