Remember to load the language

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2016-11-01 14:17:59 +01:00 committed by Dirk Hohndel
parent df2dfa4706
commit fdb48f9efb

View file

@ -2288,6 +2288,7 @@ void SettingsObjectWrapper::load()
s.endGroup(); s.endGroup();
s.beginGroup("Language"); s.beginGroup("Language");
prefs.locale.language = copy_string(qPrintable(s.value("UiLanguage").toString()));
prefs.locale.lang_locale = copy_string(qPrintable(s.value("UiLangLocale").toString())); prefs.locale.lang_locale = copy_string(qPrintable(s.value("UiLangLocale").toString()));
prefs.time_format = copy_string(qPrintable(s.value("time_format").toString())); prefs.time_format = copy_string(qPrintable(s.value("time_format").toString()));
prefs.date_format = copy_string(qPrintable(s.value("date_format").toString())); prefs.date_format = copy_string(qPrintable(s.value("date_format").toString()));