summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Molkentin <daniel.molkentin@nokia.com>2010-04-12 11:29:38 +0200
committerDaniel Molkentin <daniel.molkentin@nokia.com>2010-04-12 13:02:31 +0200
commitdc2fbe65bc40c8b3887ab715141734e4db16b061 (patch)
tree148d7701008e86319047762a8679ae1b9170ed8d
parent88683f97ad67e9acce977595f04e1c840020efcc (diff)
downloadqt-creator-dc2fbe65bc40c8b3887ab715141734e4db16b061.tar.gz
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
-rw-r--r--src/plugins/coreplugin/generalsettings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/generalsettings.cpp b/src/plugins/coreplugin/generalsettings.cpp
index cd2a4f922f..196e39abc8 100644
--- a/src/plugins/coreplugin/generalsettings.cpp
+++ b/src/plugins/coreplugin/generalsettings.cpp
@@ -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)
{