]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlGraphics.C
bibfile parsing and insetgraphics fixes from Herbert; FormToc fix from John; compile...
[lyx.git] / src / frontends / controllers / ControlGraphics.C
index 8231bdb0fc2d5bb5514ca3458a0352974438b716..de90d133b5c2b779e71450a32d6c6809b23845fb 100644 (file)
@@ -36,6 +36,7 @@
 #include "helper_funcs.h"      // for browseFile
 #include "support/lstrings.h"
 #include "support/filetools.h" // for AddName, zippedFile
+#include "frontends/Alert.h"
 #include "BufferView.h"
 
 using std::pair;
@@ -132,3 +133,10 @@ string const ControlGraphics::readBB(string const & file)
 }
 
 
+void ControlGraphics::checkFilename(string const & fname) {
+       if (!IsFileReadable(fname))
+               Alert::alert(_("Warning!"),
+                            _("Filename") + ' '
+                            + fname + _(" does not exist!"));
+
+}