LyXFunc.cpp: Add file filters for "*.lyx15" etc, part of http://bugzilla.lyx.org/show_bug.cgi?id=4508

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@26783 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2008-10-06 19:26:01 +00:00
parent 8d782380e6
commit e5ab65e8f1

View File

@ -2042,9 +2042,14 @@ void LyXFunc::open(string const & fname)
make_pair(_("Documents|#o#O"), from_utf8(lyxrc.document_path)),
make_pair(_("Examples|#E#e"), from_utf8(addPath(package().system_support().absFilename(), "examples"))));
docstring filter = _("LyX Documents (*.lyx);;");
filter += _("LyX-1.3.x Documents (*.lyx13);;");
filter += _("LyX-1.4.x Documents (*.lyx14);;");
filter += _("LyX-1.5.x Documents (*.lyx15)");
FileDialog::Result result =
fileDlg.open(from_utf8(initpath),
FileFilterList(_("LyX Documents (*.lyx)")),
FileFilterList(filter),
docstring());
if (result.first == FileDialog::Later)