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.
This commit is contained in:
whitequark 2016-10-09 12:39:48 +00:00
parent 513f55f7d4
commit 359b13bd62

View File

@ -1086,6 +1086,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)