forked from qt-creator/qt-creator
Only add qtcreator's qm files to iterate through.
The app bundles on mac as well as the Creator versions created by the windows and linux installers also copy all required qms for qt, etc, which we must not pick up in the iteration. Task-number: QTCREATORBUG-1080 Reviewed-by: Erik Verbruggen
This commit is contained in:
@@ -102,7 +102,7 @@ void GeneralSettings::fillLanguageBox() const
|
||||
|
||||
const QString creatorTrPath =
|
||||
Core::ICore::instance()->resourcePath() + QLatin1String("/translations");
|
||||
const QStringList languageFiles = QDir(creatorTrPath).entryList(QStringList(QLatin1String("*.qm")));
|
||||
const QStringList languageFiles = QDir(creatorTrPath).entryList(QStringList(QLatin1String("qtcreator*.qm")));
|
||||
|
||||
Q_FOREACH(const QString &languageFile, languageFiles)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user