aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-09-10 09:10:16 -0300
committerflow <flowlnlnln@gmail.com>2022-09-10 09:10:16 -0300
commita091245793d1e8c9cc4820c76dfdfc6e2fbbb917 (patch)
tree458cb37f6ce69415f7859cce66ef998c204f3cda /launcher
parentca282f9fb36d12bb038ebdb90f017a6e3c945c0d (diff)
downloadPrismLauncher-a091245793d1e8c9cc4820c76dfdfc6e2fbbb917.tar.gz
PrismLauncher-a091245793d1e8c9cc4820c76dfdfc6e2fbbb917.tar.bz2
PrismLauncher-a091245793d1e8c9cc4820c76dfdfc6e2fbbb917.zip
fix: emit signals when aborting NetJob
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher')
-rw-r--r--launcher/net/NetJob.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/launcher/net/NetJob.cpp b/launcher/net/NetJob.cpp
index 20d75976..8ced1b7e 100644
--- a/launcher/net/NetJob.cpp
+++ b/launcher/net/NetJob.cpp
@@ -95,6 +95,11 @@ auto NetJob::abort() -> bool
fullyAborted &= part->abort();
}
+ if (fullyAborted)
+ emitAborted();
+ else
+ emitFailed(tr("Failed to abort all tasks in the NetJob!"));
+
return fullyAborted;
}