mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 05:39:42 +00:00
Fixed problem with sorting of the masters in the launcher
This commit is contained in:
parent
37a42c7dbc
commit
8cdd1e5539
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in a new issue