diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2019-01-31 11:31:22 -0600 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2019-01-31 11:31:22 -0600 |
| commit | 2201a5b0dd739f273f2a906eda3d4d31335c7c71 (patch) | |
| tree | ec06c0b04dbe91d835df899fb25f6238049f8628 /src/modlist.cpp | |
| parent | 02433c486be3dff6e9e0801672081151143b164e (diff) | |
Make gameShortName comparisons case insensitive
Diffstat (limited to 'src/modlist.cpp')
| -rw-r--r-- | src/modlist.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp index 62c186a4..daa6ce73 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -253,7 +253,7 @@ QVariant ModList::data(const QModelIndex &modelIndex, int role) const } else if (column == COL_GAME) {
if (m_PluginContainer != nullptr) {
for (auto game : m_PluginContainer->plugins<IPluginGame>()) {
- if (game->gameShortName() == modInfo->getGameName())
+ if (game->gameShortName().compare(modInfo->getGameName(), Qt::CaseInsensitive) == 0)
return game->gameName();
}
}
|
