CollectionWatcher: Match extension case-insensitive

This commit is contained in:
Jonas Kvinge 2023-10-02 17:39:10 +02:00
parent 8fc95e08dc
commit 79c69e1b1e
1 changed files with 1 additions and 1 deletions

View File

@ -510,7 +510,7 @@ void CollectionWatcher::ScanSubdirectory(const QString &path, const CollectionSu
else {
QString ext_part(ExtensionPart(child));
QString dir_part(DirectoryPart(child));
if (kIgnoredExtensions.contains(child_info.suffix()) || child_info.baseName() == "qt_temp") {
if (kIgnoredExtensions.contains(child_info.suffix(), Qt::CaseInsensitive) || child_info.baseName() == "qt_temp") {
t->AddToProgress(1);
}
else if (sValidImages.contains(ext_part)) {