mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-19 03:39:58 +00:00
Fixed problem with sorting of the masters in the launcher
This commit is contained in:
parent
37a42c7dbc
commit
8cdd1e5539
@ -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…
x
Reference in New Issue
Block a user