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
This commit is contained in:
Jürgen Vigna 2000-01-11 10:01:39 +00:00
parent 18b8221ede
commit 9be714e913
2 changed files with 11 additions and 0 deletions

View File

@ -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

View 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));