aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/flame
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-07-17 16:55:26 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-07-17 16:55:26 +0300
commit64041a84a2da2d0ba07d6eb663ff7cbc3b351b7b (patch)
tree060c3cbf648820312418eeeaad76039babee51c7 /launcher/modplatform/flame
parent78ee63af388ec53871cd3505a64a5d2059dbb922 (diff)
downloadPrismLauncher-64041a84a2da2d0ba07d6eb663ff7cbc3b351b7b.tar.gz
PrismLauncher-64041a84a2da2d0ba07d6eb663ff7cbc3b351b7b.tar.bz2
PrismLauncher-64041a84a2da2d0ba07d6eb663ff7cbc3b351b7b.zip
handle file removal in ExportToZipTask
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/modplatform/flame')
-rw-r--r--launcher/modplatform/flame/FlamePackExportTask.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/launcher/modplatform/flame/FlamePackExportTask.cpp b/launcher/modplatform/flame/FlamePackExportTask.cpp
index fc2cbc36..a4efaf7c 100644
--- a/launcher/modplatform/flame/FlamePackExportTask.cpp
+++ b/launcher/modplatform/flame/FlamePackExportTask.cpp
@@ -344,14 +344,10 @@ void FlamePackExportTask::buildZip()
});
connect(zipTask.get(), &Task::succeeded, this, &FlamePackExportTask::emitSucceeded);
- connect(zipTask.get(), &Task::aborted, this, [this]() {
- QFile::remove(output);
- emitAborted();
- });
+ connect(zipTask.get(), &Task::aborted, this, &FlamePackExportTask::emitAborted);
connect(zipTask.get(), &Task::failed, this, [this, progressStep](QString reason) {
progressStep->state = TaskStepState::Failed;
stepProgress(*progressStep);
- QFile::remove(output);
emitFailed(reason);
});
connect(zipTask.get(), &Task::stepProgress, this, &FlamePackExportTask::propogateStepProgress);