1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 12:23:51 +00:00

Make file name comparison case-insensitive

This commit is contained in:
Capostrophic 2019-05-16 14:06:33 +03:00
parent ebe5448816
commit e14ada8f36

View file

@ -410,7 +410,7 @@ void ContentSelectorModel::ContentModel::addFile(EsmFile *file)
{ {
for (int row = 0; row < mFiles.size(); row++) 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); beginRemoveRows(QModelIndex(), row, row);
mFiles.removeAt(row); mFiles.removeAt(row);