diff options
author | Petr Mrázek <peterix@gmail.com> | 2019-01-06 22:14:13 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-01-06 22:14:13 +0100 |
commit | 4474d269cc925c9245f7e0e331cc8435f87593a4 (patch) | |
tree | fd8d85074d3c2e5609d94e8383339545917e9ab7 /application/pages | |
parent | ec2732ccd16778c433d2312793b65edb131bc7c5 (diff) | |
download | MultiMC-4474d269cc925c9245f7e0e331cc8435f87593a4.tar MultiMC-4474d269cc925c9245f7e0e331cc8435f87593a4.tar.gz MultiMC-4474d269cc925c9245f7e0e331cc8435f87593a4.tar.lz MultiMC-4474d269cc925c9245f7e0e331cc8435f87593a4.tar.xz MultiMC-4474d269cc925c9245f7e0e331cc8435f87593a4.zip |
NOISSUE granular model updates for language model
Diffstat (limited to 'application/pages')
-rw-r--r-- | application/pages/global/MultiMCPage.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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()) { |