aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/modrinth
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-03-04 11:07:07 +0000
committerTheKodeToad <TheKodeToad@proton.me>2023-03-04 11:07:07 +0000
commit87384182a19ea852522af1b0d69420a510c0a94b (patch)
tree7b0dc3289c375427d7e851310495fd0acc9c3217 /launcher/modplatform/modrinth
parentf583e617ec86a7538523a99ae008143a787e593b (diff)
downloadPrismLauncher-87384182a19ea852522af1b0d69420a510c0a94b.tar.gz
PrismLauncher-87384182a19ea852522af1b0d69420a510c0a94b.tar.bz2
PrismLauncher-87384182a19ea852522af1b0d69420a510c0a94b.zip
Fix abort?
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/modplatform/modrinth')
-rw-r--r--launcher/modplatform/modrinth/ModrinthPackExportTask.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp b/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp
index c151edf5..5ddd3408 100644
--- a/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp
+++ b/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp
@@ -54,8 +54,12 @@ void ModrinthPackExportTask::executeTask()
}
bool ModrinthPackExportTask::abort() {
- if (!task.isNull())
- return task->abort();
+ if (!task.isNull() && task->abort()) {
+ task = nullptr;
+ emitFailed(tr("Aborted"));
+ return true;
+ }
+
return false;
}