mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 09:36:43 +00:00
Oops, forgot to add timestamps for master files
This commit is contained in:
parent
6e758af05c
commit
6920958e16
1 changed files with 4 additions and 0 deletions
|
@ -281,6 +281,7 @@ void DataFilesModel::addMasters(const QString &path)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
EsmFile *file = new EsmFile(master);
|
EsmFile *file = new EsmFile(master);
|
||||||
|
file->setDates(info.lastModified(), info.lastRead());
|
||||||
|
|
||||||
// Add the master to the table
|
// Add the master to the table
|
||||||
if (findItem(master) == 0)
|
if (findItem(master) == 0)
|
||||||
|
@ -299,9 +300,12 @@ void DataFilesModel::addMasters(const QString &path)
|
||||||
dir.setNameFilters(QStringList(QLatin1String("*.esm")));
|
dir.setNameFilters(QStringList(QLatin1String("*.esm")));
|
||||||
|
|
||||||
foreach (const QString &path, dir.entryList()) {
|
foreach (const QString &path, dir.entryList()) {
|
||||||
|
QFileInfo info(dir.absoluteFilePath(path));
|
||||||
|
|
||||||
if (findItem(path) == 0) {
|
if (findItem(path) == 0) {
|
||||||
EsmFile *file = new EsmFile(path);
|
EsmFile *file = new EsmFile(path);
|
||||||
|
file->setDates(info.lastModified(), info.lastRead());
|
||||||
|
|
||||||
addFile(file);
|
addFile(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue