diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-06-09 23:23:46 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-06-09 23:30:28 +0200 |
commit | 15b7c3039a41eab75f5dcabab53de82372d2ecfa (patch) | |
tree | a8d88e39460954372c3f40c409bf20ffb728cb51 /logic/updater/DownloadTask.cpp | |
parent | 22c5ced5dc162a78876d15d1ac1dd67edcf47b72 (diff) | |
download | MultiMC-15b7c3039a41eab75f5dcabab53de82372d2ecfa.tar MultiMC-15b7c3039a41eab75f5dcabab53de82372d2ecfa.tar.gz MultiMC-15b7c3039a41eab75f5dcabab53de82372d2ecfa.tar.lz MultiMC-15b7c3039a41eab75f5dcabab53de82372d2ecfa.tar.xz MultiMC-15b7c3039a41eab75f5dcabab53de82372d2ecfa.zip |
GH-1060 update tweaks
* download to multimc folder hierarchy
* use rename, not copy
* keep backup after update
* clean previous backup before update
* it's not 'copy', it's 'replace'
Diffstat (limited to 'logic/updater/DownloadTask.cpp')
-rw-r--r-- | logic/updater/DownloadTask.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/logic/updater/DownloadTask.cpp b/logic/updater/DownloadTask.cpp index 4a42f583..76741748 100644 --- a/logic/updater/DownloadTask.cpp +++ b/logic/updater/DownloadTask.cpp @@ -27,8 +27,8 @@ namespace GoUpdate { -DownloadTask::DownloadTask(Status status, QObject *parent) - : Task(parent) +DownloadTask::DownloadTask(Status status, QString target, QObject *parent) + : Task(parent), m_updateFilesDir(target) { m_status = status; |