mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
56c470c33d
commit
117df9d694
@ -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.
|
||||
|
@ -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_; }
|
||||
|
Loading…
Reference in New Issue
Block a user