Skip to content

Commit

Permalink
Settings: Load the enable filter properly as bool
Browse files Browse the repository at this point in the history
lol
  • Loading branch information
aldelaro5 committed Jun 29, 2018
1 parent abc756d commit bf9c867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/GUI/Settings/SConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ bool SConfig::getEnableNatureFilter(const GUICommon::starter starter) const
QString gameGroupStr = gameGroupStrForStarter(starter);
QString starterGroupStr = s_starterGroupsStr.at(static_cast<int>(starter));
return m_settings->value(gameGroupStr + "/" + starterGroupStr + "/enableNatureFilter", false)
.toInt();
.toBool();
}

QVector<bool> SConfig::getNatureFilters(const GUICommon::starter starter) const
Expand All @@ -127,7 +127,7 @@ bool SConfig::getEnableHiddenPowerTypesFilter(const GUICommon::starter starter)
QString starterGroupStr = s_starterGroupsStr.at(static_cast<int>(starter));
return m_settings
->value(gameGroupStr + "/" + starterGroupStr + "/enableHiddenPowerTypeFilter", false)
.toInt();
.toBool();
}

QVector<bool> SConfig::getHiddenPowerTypesFilters(const GUICommon::starter starter) const
Expand Down

0 comments on commit bf9c867

Please sign in to comment.