always have "All Files" as filter in the list

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8873 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2004-08-08 15:24:29 +00:00
parent 56c470c33d
commit 117df9d694
2 changed files with 5 additions and 4 deletions

View File

@ -114,8 +114,9 @@ vector<string> const expand_globs(string const & mask,
FileFilterList::FileFilterList(string const & qt_style_filter)
{
string const filter = qt_style_filter.empty() ?
_("All files (*)") : qt_style_filter;
string const filter = qt_style_filter
+ (qt_style_filter.empty() ? string() : ";;")
+ _("All files (*)");
// Split data such as "TeX documents (*.tex);;LyX Documents (*.lyx)"
// into individual filters.

View File

@ -68,8 +68,8 @@ public:
};
/** \param qt_style_filter a list of available file filters.
* Eg. "TeX documents (*.tex);;LyX Documents (*.lyx)"
* If empty, set to "All files (*)".
* Eg. "TeX documents (*.tex);;LyX Documents (*.lyx)".
* The "All files (*)" filter is always added to the list.
*/
explicit FileFilterList(std::string const & qt_style_filter = std::string());
std::vector<Filter> const & filters() const { return filters_; }