From 5e2839977bd7c40dee207122524af4107d4efb18 Mon Sep 17 00:00:00 2001 From: dteviot Date: Sat, 28 Feb 2015 20:25:03 +1300 Subject: [PATCH] file extension comparison needs to be case insensitive. --- components/contentselector/model/esmfile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/contentselector/model/esmfile.cpp b/components/contentselector/model/esmfile.cpp index 9f85e5f43..1ac1c7500 100644 --- a/components/contentselector/model/esmfile.cpp +++ b/components/contentselector/model/esmfile.cpp @@ -65,7 +65,8 @@ QByteArray ContentSelectorModel::EsmFile::encodedData() const bool ContentSelectorModel::EsmFile::isGameFile() const { return (mGameFiles.size() == 0) && - (mFileName.endsWith(QLatin1String(".esm")) || mFileName.endsWith(QLatin1String(".omwgame"))); + (mFileName.endsWith(QLatin1String(".esm"), Qt::CaseInsensitive) || + mFileName.endsWith(QLatin1String(".omwgame"), Qt::CaseInsensitive)); } QVariant ContentSelectorModel::EsmFile::fileProperty(const FileProperty prop) const