summaryrefslogtreecommitdiffstats
path: root/gui/dialogs/SettingsDialog.cpp
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2014-01-04 19:20:20 +0100
committerJan Dalheimer <jan@dalheimer.de>2014-01-04 19:20:20 +0100
commit8950953d915ba234f62da93b520a1b82594cb9dc (patch)
tree96d7219d095cfc179fb2ba79b5583637d99aa99d /gui/dialogs/SettingsDialog.cpp
parent7f6b344b49506462a63453bc79ae1b82536dc138 (diff)
downloadMultiMC-8950953d915ba234f62da93b520a1b82594cb9dc.tar
MultiMC-8950953d915ba234f62da93b520a1b82594cb9dc.tar.gz
MultiMC-8950953d915ba234f62da93b520a1b82594cb9dc.tar.lz
MultiMC-8950953d915ba234f62da93b520a1b82594cb9dc.tar.xz
MultiMC-8950953d915ba234f62da93b520a1b82594cb9dc.zip
Hopefully fix Qt 5.1 compilation
Diffstat (limited to 'gui/dialogs/SettingsDialog.cpp')
-rw-r--r--gui/dialogs/SettingsDialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/dialogs/SettingsDialog.cpp b/gui/dialogs/SettingsDialog.cpp
index e0e1b82c..60a3e009 100644
--- a/gui/dialogs/SettingsDialog.cpp
+++ b/gui/dialogs/SettingsDialog.cpp
@@ -220,7 +220,7 @@ void SettingsDialog::applySettings(SettingsObject *s)
}
// Language
- s->set("Language", ui->languageBox->currentData().toLocale().bcp47Name());
+ s->set("Language", ui->languageBox->itemData(ui->languageBox->currentIndex()).toLocale().bcp47Name());
// Updates
s->set("AutoUpdate", ui->autoUpdateCheckBox->isChecked());