QTfrontend/campaign.cpp
changeset 13274 e381f5260b45
parent 12305 d3a52e51efd4
child 13834 e3fee73c51a0
--- a/QTfrontend/campaign.cpp	Fri Mar 23 03:37:07 2018 +0100
+++ b/QTfrontend/campaign.cpp	Sat Mar 24 00:26:39 2018 +0100
@@ -88,9 +88,7 @@
     // get locale
     QSettings settings(dataMgr.settingsFileName(),
     QSettings::IniFormat);
-    QString loc = settings.value("misc/locale", "").toString();
-    if (loc.isEmpty())
-        loc = QLocale::system().name();
+    QString loc = QLocale().name();
     QString campaignDescFile = QString("physfs://Locale/campaigns_" + loc + ".txt");
     // if file is non-existant try with language only
     if (!QFile::exists(campaignDescFile))