file extension comparison needs to be case insensitive.

celladd
dteviot 10 years ago
parent 54e3ebde63
commit 5e2839977b

@ -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

Loading…
Cancel
Save