diff options
-rw-r--r-- | qt-ui/models.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 2585c578f..bac96f568 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -1765,9 +1765,7 @@ LanguageModel* LanguageModel::instance() LanguageModel::LanguageModel(QObject* parent): QAbstractListModel(parent) { QSettings s; - QDir d; - QString cwd = d.currentPath(); - d.setCurrent( getSubsurfaceDataPath("translations") ); + QDir d(getSubsurfaceDataPath("translations")); QStringList result = d.entryList(); Q_FOREACH(const QString& s, result){ if ( !s.endsWith(".qm") ){ @@ -1775,7 +1773,6 @@ LanguageModel::LanguageModel(QObject* parent): QAbstractListModel(parent) } languages.push_back( (s == "subsurface_source.qm") ? "English" : s); } - d.setCurrent(cwd); } QVariant LanguageModel::data(const QModelIndex& index, int role) const |