This commit is contained in:
auria.mg 2017-10-29 14:07:41 -04:00
parent b15ab1f043
commit 4f7cdbe294

View File

@ -165,11 +165,12 @@ void OptionsScreenUI::init()
// --- select the right skin in the spinner
bool currSkinFound = false;
const int skinCount = (int) m_skins.size();
std::string user_skin = StringUtils::toLowerCase(UserConfigParams::m_skin_file.c_str());
for (int n=0; n<skinCount; n++)
{
const std::string skinFileName = StringUtils::getBasename(m_skins[n]);
const std::string skinFileName = StringUtils::toLowerCase(StringUtils::getBasename(m_skins[n]));
if (UserConfigParams::m_skin_file.c_str() == skinFileName)
if (user_skin == skinFileName)
{
skinSelector->setValue(n);
currSkinFound = true;