Clear available languages when loading settings.

Thanks to Victor Häggqvist for spotting this.
This commit is contained in:
Florian Geyer 2014-09-05 10:04:02 +02:00
parent 0e8aa0bc6c
commit 72b59d541a

View File

@ -70,6 +70,7 @@ void SettingsWidget::loadSettings()
m_generalUi->useGroupIconOnEntryCreationCheckBox->setChecked(config()->get("UseGroupIconOnEntryCreation").toBool());
m_generalUi->autoTypeEntryTitleMatchCheckBox->setChecked(config()->get("AutoTypeEntryTitleMatch").toBool());
m_generalUi->languageComboBox->clear();
QList<QPair<QString, QString> > languages = Translator::availableLanguages();
for (int i = 0; i < languages.size(); i++) {
m_generalUi->languageComboBox->addItem(languages[i].second, languages[i].first);