0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 21:13:04 +02:00

UI: Make drag and drop file ext. case insensitive

Fixes obsproject/obs-studio#4236
This commit is contained in:
Anton Bershanskiy 2021-03-08 01:36:36 +03:00 committed by Jim
parent dcf3e6cd06
commit 7d5430f4ea

View File

@ -247,7 +247,7 @@ void OBSBasic::dropEvent(QDropEvent *event)
#define CHECK_SUFFIX(extensions, type) \ #define CHECK_SUFFIX(extensions, type) \
cmp = extensions; \ cmp = extensions; \
while (*cmp) { \ while (*cmp) { \
if (strcmp(*cmp, suffix) == 0) { \ if (astrcmpi(*cmp, suffix) == 0) { \
AddDropSource(QT_TO_UTF8(file), type); \ AddDropSource(QT_TO_UTF8(file), type); \
found = true; \ found = true; \
break; \ break; \