From a521bdc0e308d694a3e45be37cb27365d6d9eef2 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 20 Aug 2022 19:08:58 +0200 Subject: [PATCH] TagReaderGME: Compare file extension case-insensitive --- ext/libstrawberry-tagreader/tagreadergme.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/libstrawberry-tagreader/tagreadergme.cpp b/ext/libstrawberry-tagreader/tagreadergme.cpp index 30cdee9b3..fe7b79e35 100644 --- a/ext/libstrawberry-tagreader/tagreadergme.cpp +++ b/ext/libstrawberry-tagreader/tagreadergme.cpp @@ -36,16 +36,16 @@ #include "tagreadertaglib.h" bool GME::IsSupportedFormat(const QFileInfo &file_info) { - return file_info.exists() && (file_info.completeSuffix().endsWith("spc") || file_info.completeSuffix().endsWith("vgm")); + return file_info.exists() && (file_info.completeSuffix().endsWith("spc", Qt::CaseInsensitive) || file_info.completeSuffix().endsWith("vgm"), Qt::CaseInsensitive); } bool GME::ReadFile(const QFileInfo &file_info, spb::tagreader::SongMetadata *song_info) { - if (file_info.completeSuffix().endsWith("spc")) { + if (file_info.completeSuffix().endsWith("spc"), Qt::CaseInsensitive) { SPC::Read(file_info, song_info); return true; } - if (file_info.completeSuffix().endsWith("vgm")) { + if (file_info.completeSuffix().endsWith("vgm", Qt::CaseInsensitive)) { VGM::Read(file_info, song_info); return true; }