summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/preferences/preferences_language.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/desktop-widgets/preferences/preferences_language.cpp b/desktop-widgets/preferences/preferences_language.cpp
index e4a63ae9e..2bcd3422d 100644
--- a/desktop-widgets/preferences/preferences_language.cpp
+++ b/desktop-widgets/preferences/preferences_language.cpp
@@ -82,15 +82,15 @@ void PreferencesLanguage::syncSettings()
currentLocale = m->data(languages.first(),Qt::UserRole).toString();
- auto lang = SettingsObjectWrapper::instance()->language_settings;
- lang->setLanguage(currentText);
- lang->setLangLocale(currentLocale);
- lang->setUseSystemLanguage(ui->languageSystemDefault->isChecked());
- lang->setTimeFormatOverride(!ui->timeFormatSystemDefault->isChecked());
- lang->setDateFormatOverride(!ui->dateFormatSystemDefault->isChecked());
- lang->setTimeFormat(ui->timeFormatEntry->currentText());
- lang->setDateFormat(ui->dateFormatEntry->currentText());
- lang->setDateFormatShort(ui->shortDateFormatEntry->text());
+ auto lang = qPrefLanguage::instance();
+ lang->set_language(currentText);
+ lang->set_lang_locale(currentLocale);
+ lang->set_use_system_language(ui->languageSystemDefault->isChecked());
+ lang->set_time_format_override(!ui->timeFormatSystemDefault->isChecked());
+ lang->set_date_format_override(!ui->dateFormatSystemDefault->isChecked());
+ lang->set_time_format(ui->timeFormatEntry->currentText());
+ lang->set_date_format(ui->dateFormatEntry->currentText());
+ lang->set_date_format_short(ui->shortDateFormatEntry->text());
uiLanguage(NULL);
QString qDateTimeWeb = tr("These will be used as is. This might not be what you intended.\nSee http://doc.qt.io/qt-5/qdatetime.html#toString");