summaryrefslogtreecommitdiffstats
path: root/application/MultiMC.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-06-10 00:46:45 +0200
committerPetr Mrázek <peterix@gmail.com>2015-06-10 00:46:45 +0200
commit88f5c8d347a3f32802eb2f770d61369988ed9570 (patch)
tree7906b01943b81c95936616d3bce01e09ca518ddd /application/MultiMC.cpp
parent15b7c3039a41eab75f5dcabab53de82372d2ecfa (diff)
downloadMultiMC-88f5c8d347a3f32802eb2f770d61369988ed9570.tar
MultiMC-88f5c8d347a3f32802eb2f770d61369988ed9570.tar.gz
MultiMC-88f5c8d347a3f32802eb2f770d61369988ed9570.tar.lz
MultiMC-88f5c8d347a3f32802eb2f770d61369988ed9570.tar.xz
MultiMC-88f5c8d347a3f32802eb2f770d61369988ed9570.zip
GH-1060 create and delete update dir
Diffstat (limited to 'application/MultiMC.cpp')
-rw-r--r--application/MultiMC.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/application/MultiMC.cpp b/application/MultiMC.cpp
index 18a819ab..feda6ec3 100644
--- a/application/MultiMC.cpp
+++ b/application/MultiMC.cpp
@@ -663,6 +663,7 @@ void MultiMC::installUpdates(const QString updateFilesDir, GoUpdate::OperationLi
#endif
QString backupPath = PathCombine(root(), "update", "backup");
+ QDir origin(root());
// clean up the backup folder. it should be empty before we start
if(!deletePath(backupPath))
@@ -773,6 +774,7 @@ void MultiMC::installUpdates(const QString updateFilesDir, GoUpdate::OperationLi
failedOperationType = Start;
goto FAILED;
}
+ origin.rmdir(updateFilesDir);
qApp->quit();
return;