GH-347 update timestamps of added mods
This commit is contained in:
parent
b09fad9cbf
commit
9b41986634
3 changed files with 25 additions and 1 deletions
|
@ -148,13 +148,13 @@ bool ModList::installMod(const QString &filename)
|
|||
QString newpath = FS::PathCombine(m_dir.path(), fileinfo.fileName());
|
||||
if (!QFile::copy(fileinfo.filePath(), newpath))
|
||||
return false;
|
||||
FS::updateTimestamp(newpath);
|
||||
m.repath(newpath);
|
||||
update();
|
||||
return true;
|
||||
}
|
||||
else if (type == Mod::MOD_FOLDER)
|
||||
{
|
||||
|
||||
QString from = fileinfo.filePath();
|
||||
QString to = FS::PathCombine(m_dir.path(), fileinfo.fileName());
|
||||
if (!FS::copy(from, to)())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue