From e14ada8f364ffa77a9e01997ca83b2ffc9ba6173 Mon Sep 17 00:00:00 2001 From: Capostrophic Date: Thu, 16 May 2019 14:06:33 +0300 Subject: [PATCH] Make file name comparison case-insensitive --- components/contentselector/model/contentmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/contentselector/model/contentmodel.cpp b/components/contentselector/model/contentmodel.cpp index ef27f938d..d39df8ce6 100644 --- a/components/contentselector/model/contentmodel.cpp +++ b/components/contentselector/model/contentmodel.cpp @@ -410,7 +410,7 @@ void ContentSelectorModel::ContentModel::addFile(EsmFile *file) { for (int row = 0; row < mFiles.size(); row++) { - if (mFiles.at(row)->fileName() == file->fileName()) + if (!mFiles.at(row)->fileName().compare(file->fileName(), Qt::CaseInsensitive)) { beginRemoveRows(QModelIndex(), row, row); mFiles.removeAt(row);