From: Jürgen Vigna Date: Tue, 11 Jan 2000 10:01:39 +0000 (+0000) Subject: When documentation file could not be found now a correct error messages is X-Git-Tag: 1.6.10~22434 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9be714e91387bf02a8af3ae76cc7d4b1c599e784;p=features.git When documentation file could not be found now a correct error messages is emited with a LyXAlert-Window! git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@414 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/ChangeLog b/ChangeLog index 17874f0c66..2d530d50ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-01-11 Juergen Vigna + + * src/menus.C (MenuDocu): output an Alert if the documentation-file + could not be found. + 2000-01-11 Lars Gullik Bjønnes * src/vc-backend.C (doVCCommand): change to be static and take one diff --git a/src/menus.C b/src/menus.C index 686dc9c827..271a87374f 100644 --- a/src/menus.C +++ b/src/menus.C @@ -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));