forked from teamnwah/openmw-tes3coop
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
|
// Read the dependencies from the plugins
|
||||||
foreach (const QString &path, dir.entryList()) {
|
foreach (const QString &path, dir.entryList()) {
|
||||||
QFileInfo info(dir.absoluteFilePath(path));
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ESM::ESMReader fileReader;
|
ESM::ESMReader fileReader;
|
||||||
fileReader.setEncoding(mEncoding.toStdString());
|
fileReader.setEncoding(mEncoding.toStdString());
|
||||||
|
@ -287,6 +285,8 @@ void DataFilesModel::addMasters(const QString &path)
|
||||||
if (master.endsWith(".esp", Qt::CaseInsensitive))
|
if (master.endsWith(".esp", Qt::CaseInsensitive))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
QFileInfo info(dir.absoluteFilePath(master));
|
||||||
|
|
||||||
EsmFile *file = new EsmFile(master);
|
EsmFile *file = new EsmFile(master);
|
||||||
file->setDates(info.lastModified(), info.lastRead());
|
file->setDates(info.lastModified(), info.lastRead());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue