conforming to code style

Fixes #CURA-327
This commit is contained in:
Tamara Hogenhout 2015-11-10 17:02:33 +01:00
parent c746c24e2b
commit ce08ab2b9a

View File

@ -13,10 +13,13 @@ UM.PreferencesPage
//: General configuration page title //: General configuration page title
title: catalog.i18nc("@title:tab","General"); title: catalog.i18nc("@title:tab","General");
function setDefaultLanguage(languageCode){ function setDefaultLanguage(languageCode)
{
//loops trough the languageList and sets the language using the languageCode //loops trough the languageList and sets the language using the languageCode
for(var i = 0; i < languageList.count; i++){ for(var i = 0; i < languageList.count; i++)
if (languageComboBox.model.get(i).code == languageCode){ {
if (languageComboBox.model.get(i).code == languageCode)
{
languageComboBox.currentIndex = i languageComboBox.currentIndex = i
} }
} }