From a091245793d1e8c9cc4820c76dfdfc6e2fbbb917 Mon Sep 17 00:00:00 2001 From: flow Date: Sat, 10 Sep 2022 09:10:16 -0300 Subject: [PATCH] fix: emit signals when aborting NetJob Signed-off-by: flow --- launcher/net/NetJob.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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; }