diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-17 16:55:26 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-17 16:55:26 +0300 |
commit | 64041a84a2da2d0ba07d6eb663ff7cbc3b351b7b (patch) | |
tree | 060c3cbf648820312418eeeaad76039babee51c7 /launcher/modplatform/flame | |
parent | 78ee63af388ec53871cd3505a64a5d2059dbb922 (diff) | |
download | PrismLauncher-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.cpp | 6 |
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); |