Fix customizing locale

This commit is contained in:
Martchus 2017-01-07 16:56:24 +01:00
parent f50f35ddc8
commit 086ff0b409
1 changed files with 2 additions and 2 deletions

View File

@ -329,7 +329,7 @@ bool QtLanguageOptionPage::apply()
{
if(hasBeenShown()) {
m_settings.localeName = ui()->localeComboBox->currentText();
m_settings.customLocale = ui()->localeCheckBox->isChecked();
m_settings.customLocale = !ui()->localeCheckBox->isChecked();
}
return true;
}
@ -338,7 +338,7 @@ void QtLanguageOptionPage::reset()
{
if(hasBeenShown()) {
ui()->localeComboBox->setCurrentText(m_settings.localeName);
ui()->localeCheckBox->setChecked(m_settings.customLocale);
ui()->localeCheckBox->setChecked(!m_settings.customLocale);
}
}