mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-31 15:46:16 +00:00
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:
parent
18b8221ede
commit
9be714e913
@ -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
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user