diff options
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r-- | qt-ui/models.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index ca6f6375f..a0bb97aa7 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -2035,8 +2035,7 @@ LanguageModel::LanguageModel(QObject *parent) : QAbstractListModel(parent) { QSettings s; QDir d(getSubsurfaceDataPath("translations")); - QStringList result = d.entryList(); - Q_FOREACH (const QString &s, result) { + Q_FOREACH (const QString &s, d.entryList()) { if (s.startsWith("subsurface_") && s.endsWith(".qm")) { languages.push_back((s == "subsurface_source.qm") ? "English" : s); } |