GTK: show files with uppercase extensions in file open dialog.

The Windows dialog does that automatically, but the GTK one doesn't.
So this is useful for Windows interop.
pull/33/merge
whitequark 2016-10-09 12:39:48 +00:00
parent cd5b5b2d7c
commit 06a188cc62
1 changed files with 1 additions and 0 deletions

View File

@ -1069,6 +1069,7 @@ static std::string ConvertFilters(std::string active, const FileFilter ssFilters
for(const char *const *ssPattern = ssFilter->patterns; *ssPattern; ssPattern++) {
std::string pattern = "*." + std::string(*ssPattern);
filter->add_pattern(pattern);
filter->add_pattern(Glib::ustring(pattern).uppercase());
if(active == "")
active = pattern.substr(2);
if("*." + active == pattern)