fix: emit signals when aborting NetJob

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow 2022-09-10 09:10:16 -03:00
parent ca282f9fb3
commit a091245793
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469

View File

@ -95,6 +95,11 @@ auto NetJob::abort() -> bool
fullyAborted &= part->abort(); fullyAborted &= part->abort();
} }
if (fullyAborted)
emitAborted();
else
emitFailed(tr("Failed to abort all tasks in the NetJob!"));
return fullyAborted; return fullyAborted;
} }