diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-12-27 03:34:03 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-12-27 03:34:03 +0100 |
commit | e8063d193d56acc10c5a533cffd95c9271b24e65 (patch) | |
tree | f7ba9783d4c3fd2667f095417bce50f22789970a /application/pages | |
parent | 7670d72bd9c8bb2adcecd2d04413a2abb9ac174f (diff) | |
download | MultiMC-e8063d193d56acc10c5a533cffd95c9271b24e65.tar MultiMC-e8063d193d56acc10c5a533cffd95c9271b24e65.tar.gz MultiMC-e8063d193d56acc10c5a533cffd95c9271b24e65.tar.lz MultiMC-e8063d193d56acc10c5a533cffd95c9271b24e65.tar.xz MultiMC-e8063d193d56acc10c5a533cffd95c9271b24e65.zip |
GH-1308 remove use of static data (translations) and root (notifications.json) paths.
Diffstat (limited to 'application/pages')
-rw-r--r-- | application/pages/global/MultiMCPage.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/application/pages/global/MultiMCPage.cpp b/application/pages/global/MultiMCPage.cpp index 5b7a1204..18f30010 100644 --- a/application/pages/global/MultiMCPage.cpp +++ b/application/pages/global/MultiMCPage.cpp @@ -336,8 +336,7 @@ void MultiMCPage::loadSettings() // Language ui->languageBox->clear(); ui->languageBox->addItem(tr("English"), QLocale(QLocale::English)); - foreach(const QString & lang, QDir(MMC->staticData() + "/translations") - .entryList(QStringList() << "*.qm", QDir::Files)) + for(const QString & lang: QDir("translations").entryList(QStringList() << "*.qm", QDir::Files)) { QLocale locale(lang.section(QRegExp("[_\\.]"), 1)); ui->languageBox->addItem(QLocale::languageToString(locale.language()), locale); |