Linux: make * extension filter works.
This commit is contained in:
parent
ec18c2f354
commit
c566ba575f
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,9 @@ namespace {
|
|||
// Makes sure that .jpg also shows .JPG.
|
||||
gboolean FileFilterCaseInsensitive(const GtkFileFilterInfo* file_info,
|
||||
std::string* file_extension) {
|
||||
// Makes .* file extension matches all file types.
|
||||
if (*file_extension == ".*")
|
||||
return true;
|
||||
return EndsWith(file_info->filename, *file_extension, false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue