diff options
author | flow <flowlnlnln@gmail.com> | 2022-09-10 09:10:16 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-09-10 09:10:16 -0300 |
commit | a091245793d1e8c9cc4820c76dfdfc6e2fbbb917 (patch) | |
tree | 458cb37f6ce69415f7859cce66ef998c204f3cda /launcher | |
parent | ca282f9fb36d12bb038ebdb90f017a6e3c945c0d (diff) | |
download | PrismLauncher-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.cpp | 5 |
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; } |