From 8cdd1e553968b76d893ae3731b5e2c08f72ff295 Mon Sep 17 00:00:00 2001 From: pvdk Date: Fri, 2 Nov 2012 15:06:14 +0100 Subject: [PATCH] Fixed problem with sorting of the masters in the launcher --- apps/launcher/model/datafilesmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/launcher/model/datafilesmodel.cpp b/apps/launcher/model/datafilesmodel.cpp index 70b9d0ca75..47811dcaf0 100644 --- a/apps/launcher/model/datafilesmodel.cpp +++ b/apps/launcher/model/datafilesmodel.cpp @@ -268,8 +268,6 @@ void DataFilesModel::addMasters(const QString &path) // Read the dependencies from the plugins foreach (const QString &path, dir.entryList()) { - QFileInfo info(dir.absoluteFilePath(path)); - try { ESM::ESMReader fileReader; fileReader.setEncoding(mEncoding.toStdString()); @@ -287,6 +285,8 @@ void DataFilesModel::addMasters(const QString &path) if (master.endsWith(".esp", Qt::CaseInsensitive)) continue; + QFileInfo info(dir.absoluteFilePath(master)); + EsmFile *file = new EsmFile(master); file->setDates(info.lastModified(), info.lastRead());