summaryrefslogtreecommitdiffstats
path: root/application/MainWindow.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-06-09 23:23:46 +0200
committerPetr Mrázek <peterix@gmail.com>2015-06-09 23:30:28 +0200
commit15b7c3039a41eab75f5dcabab53de82372d2ecfa (patch)
treea8d88e39460954372c3f40c409bf20ffb728cb51 /application/MainWindow.cpp
parent22c5ced5dc162a78876d15d1ac1dd67edcf47b72 (diff)
downloadMultiMC-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 'application/MainWindow.cpp')
-rw-r--r--application/MainWindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp
index 8c827806..ad4cbf7a 100644
--- a/application/MainWindow.cpp
+++ b/application/MainWindow.cpp
@@ -988,7 +988,8 @@ void MainWindow::downloadUpdates(GoUpdate::Status status)
ProgressDialog updateDlg(this);
status.rootPath = MMC->rootPath;
- GoUpdate::DownloadTask updateTask(status, &updateDlg);
+ auto dlPath = PathCombine(MMC->root(), "update", "XXXXXX");
+ GoUpdate::DownloadTask updateTask(status, dlPath, &updateDlg);
// If the task succeeds, install the updates.
if (updateDlg.exec(&updateTask))
{