mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-08 06:22:53 -04:00
Replace old for-loops with range-based for-loops
This commit is contained in:
parent
4876beabed
commit
4ac1601696
4 changed files with 8 additions and 9 deletions
|
@ -146,8 +146,8 @@ void ApplicationSettingsWidget::loadSettings()
|
|||
|
||||
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);
|
||||
for (const auto& language : languages) {
|
||||
m_generalUi->languageComboBox->addItem(language.second, language.first);
|
||||
}
|
||||
int defaultIndex = m_generalUi->languageComboBox->findData(config()->get("GUI/Language"));
|
||||
if (defaultIndex > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue