Fix(Task): check if task is still running before calling emitAborted()

Signed-off-by: 0x189D7997 <199489335+0x189D7997@users.noreply.github.com>
(cherry picked from commit 15b39af92e)
This commit is contained in:
0x189D7997 2026-04-17 02:11:06 +00:00 committed by github-actions[bot]
parent b29be81e36
commit ba32a9155f

View file

@ -165,7 +165,7 @@ class Task : public QObject, public QRunnable {
//! used by external code to ask the task to abort
virtual bool abort()
{
if (canAbort())
if (canAbort() && isRunning())
emitAborted();
return canAbort();
}