From 9b4198663463ce584fbd4f78adff29edc2bbc51c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Thu, 17 Nov 2016 04:09:24 +0100 Subject: GH-347 update timestamps of added mods --- api/logic/minecraft/ModList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/logic/minecraft') diff --git a/api/logic/minecraft/ModList.cpp b/api/logic/minecraft/ModList.cpp index 7396cd65..10a145b8 100644 --- a/api/logic/minecraft/ModList.cpp +++ b/api/logic/minecraft/ModList.cpp @@ -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)()) -- cgit v1.2.3