parent
70a993aacb
commit
fa5a732b68
|
@ -1475,6 +1475,10 @@ namespace IGFD
|
||||||
infos->fileExt = infos->fileNameExt.substr(lpt);
|
infos->fileExt = infos->fileNameExt.substr(lpt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (char& i: infos->fileExt) {
|
||||||
|
if (i>='A' && i<='Z') i+='a'-'A';
|
||||||
|
}
|
||||||
|
|
||||||
if (!vFileDialogInternal.puFilterManager.IsCoveredByFilters(infos->fileExt))
|
if (!vFileDialogInternal.puFilterManager.IsCoveredByFilters(infos->fileExt))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -5511,7 +5511,11 @@ void FurnaceGUI::processDrags(int dragX, int dragY) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#define checkExtension(x) \
|
#define checkExtension(x) \
|
||||||
if (fileName.size()<4 || fileName.rfind(x)!=fileName.size()-4) { \
|
String lowerCase=fileName; \
|
||||||
|
for (char& i: lowerCase) { \
|
||||||
|
if (i>='A' && i<='Z') i+='a'-'A'; \
|
||||||
|
} \
|
||||||
|
if (lowerCase.size()<4 || lowerCase.rfind(x)!=lowerCase.size()-4) { \
|
||||||
fileName+=x; \
|
fileName+=x; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue