mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 15:59:54 +00:00
file extension comparison needs to be case insensitive.
This commit is contained in:
parent
54e3ebde63
commit
5e2839977b
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue