Desktop: Fix Crash when Adding JPG Image on MacOS.

Fix a crash on MacOS when trying to open a JPG image with libraw by filtering files by valid extensions for RAW files.

Fixes #4377.

Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
Michael Keller 2025-01-23 01:16:04 +13:00
parent 71ebee8ab6
commit 5b5d2868e2
3 changed files with 6 additions and 5 deletions

View file

@ -1092,7 +1092,7 @@ const QStringList videoExtensionsList = {
};
// Raw extensions according to https://en.wikipedia.org/wiki/Raw_image_format
static const QStringList rawExtensionsList = {
const QStringList rawExtensionsList = {
#ifdef LIBRAW_SUPPORT
"*.3fr", "*.ari", "*.arw", "*.bay", "*.braw", "*.crw", "*.cr2", "*.cr3", "*.cap",
"*.data", "*.dcs", "*.dcr", "*.dng", "*.drf", "*.eip", "*.erf", "*.fff", "*.gpr",