Linux: make * extension filter works.

This commit is contained in:
Haojian Wu 2015-08-21 11:06:29 +08:00
parent ec18c2f354
commit c566ba575f

View file

@ -19,6 +19,9 @@ namespace {
// Makes sure that .jpg also shows .JPG. // Makes sure that .jpg also shows .JPG.
gboolean FileFilterCaseInsensitive(const GtkFileFilterInfo* file_info, gboolean FileFilterCaseInsensitive(const GtkFileFilterInfo* file_info,
std::string* file_extension) { std::string* file_extension) {
// Makes .* file extension matches all file types.
if (*file_extension == ".*")
return true;
return EndsWith(file_info->filename, *file_extension, false); return EndsWith(file_info->filename, *file_extension, false);
} }