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
parent
cd5b5b2d7c
commit
06a188cc62
|
@ -1069,6 +1069,7 @@ static std::string ConvertFilters(std::string active, const FileFilter ssFilters
|
||||||
for(const char *const *ssPattern = ssFilter->patterns; *ssPattern; ssPattern++) {
|
for(const char *const *ssPattern = ssFilter->patterns; *ssPattern; ssPattern++) {
|
||||||
std::string pattern = "*." + std::string(*ssPattern);
|
std::string pattern = "*." + std::string(*ssPattern);
|
||||||
filter->add_pattern(pattern);
|
filter->add_pattern(pattern);
|
||||||
|
filter->add_pattern(Glib::ustring(pattern).uppercase());
|
||||||
if(active == "")
|
if(active == "")
|
||||||
active = pattern.substr(2);
|
active = pattern.substr(2);
|
||||||
if("*." + active == pattern)
|
if("*." + active == pattern)
|
||||||
|
|
Loading…
Reference in New Issue