]> git.lyx.org Git - features.git/commitdiff
When documentation file could not be found now a correct error messages is
authorJürgen Vigna <jug@sad.it>
Tue, 11 Jan 2000 10:01:39 +0000 (10:01 +0000)
committerJürgen Vigna <jug@sad.it>
Tue, 11 Jan 2000 10:01:39 +0000 (10:01 +0000)
emited with a LyXAlert-Window!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@414 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
src/menus.C

index 17874f0c668cfbeaf4c4e0c9e1230c8835a8f663..2d530d50ba221c7c0caa194f127ef774ecefd992 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-01-11  Juergen Vigna  <jug@sad.it>
+
+       * src/menus.C (MenuDocu): output an Alert if the documentation-file
+       could not be found.
+
 2000-01-11  Lars Gullik Bjønnes  <larsbj@lyx.org>
 
        * src/vc-backend.C (doVCCommand): change to be static and take one
index 686dc9c82770e977b61c7c296b4d543f47fed04b..271a87374f2e119eceaaab265c51cb0385ac6738 100644 (file)
@@ -1652,6 +1652,12 @@ void Menus::ShowHelpMenu(FL_OBJECT * ob, long)
 void Menus::MenuDocu(string const & docname) 
 {
        string fname = i18nLibFileSearch("doc", docname, "lyx");
+       if (fname.empty()) {
+               WriteAlert(_("Error!"),
+                          _("Could not find requested Documentation file"),
+                          fname);
+               return;
+       }
        _view->getMiniBuffer()->Set(_("Opening help file"),
                                    MakeDisplayPath(fname), "...");
        currentView()->buffer(bufferlist.loadLyXFile(fname, false));