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:
parent
513f55f7d4
commit
359b13bd62
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user