Make hasMaster() behavior consistent with isGameFile() (fixes #3618)

0.6.3
Capostrophic 7 years ago committed by GitHub
parent 9b8c56761b
commit be542507f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -493,8 +493,10 @@ bool Config::GameSettings::hasMaster()
{
bool result = false;
QStringList content = mSettings.values(QString(Config::GameSettings::sContentKey));
for (int i = 0; i < content.count(); ++i) {
if (content.at(i).contains(".omwgame") || content.at(i).contains(".esm")) {
for (int i = 0; i < content.count(); ++i)
{
if (content.at(i).endsWith(QLatin1String(".omwgame"), Qt::CaseInsensitive) || content.at(i).endsWith(QLatin1String(".esm"), Qt::CaseInsensitive))
{
result = true;
break;
}

Loading…
Cancel
Save