From 4474d269cc925c9245f7e0e331cc8435f87593a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 6 Jan 2019 22:14:13 +0100 Subject: NOISSUE granular model updates for language model --- application/pages/global/MultiMCPage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'application/pages') diff --git a/application/pages/global/MultiMCPage.cpp b/application/pages/global/MultiMCPage.cpp index 1991c9ba..4dd070ac 100644 --- a/application/pages/global/MultiMCPage.cpp +++ b/application/pages/global/MultiMCPage.cpp @@ -237,7 +237,8 @@ void MultiMCPage::applySettings() auto s = MMC->settings(); // Language - s->set("Language", ui->languageBox->itemData(ui->languageBox->currentIndex()).toString()); + auto langCode = ui->languageBox->itemData(ui->languageBox->currentIndex()).toString(); + s->set("Language", langCode.isEmpty() ? "en" : langCode); if (ui->resetNotificationsBtn->isChecked()) { -- cgit v1.2.3