From ba32a9155f2de57ec9ef061fc2b864780aef2e5e Mon Sep 17 00:00:00 2001 From: 0x189D7997 <199489335+0x189D7997@users.noreply.github.com> Date: Fri, 17 Apr 2026 02:11:06 +0000 Subject: [PATCH] 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 15b39af92e9147674c202448db8d586cd3981b8b) --- launcher/tasks/Task.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/tasks/Task.h b/launcher/tasks/Task.h index 6591ca302..38c09da90 100644 --- a/launcher/tasks/Task.h +++ b/launcher/tasks/Task.h @@ -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(); }