aboutsummaryrefslogtreecommitdiff
path: root/launcher/tasks/SequentialTask.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/tasks/SequentialTask.cpp')
-rw-r--r--launcher/tasks/SequentialTask.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/launcher/tasks/SequentialTask.cpp b/launcher/tasks/SequentialTask.cpp
index e7d58524..ee57cac1 100644
--- a/launcher/tasks/SequentialTask.cpp
+++ b/launcher/tasks/SequentialTask.cpp
@@ -34,6 +34,11 @@ void SequentialTask::executeTask()
bool SequentialTask::abort()
{
if(m_currentIndex == -1 || m_currentIndex >= m_queue.size()) {
+ if(m_currentIndex == -1) {
+ // Don't call emitAborted() here, we want to bypass the 'is the task running' check
+ emit aborted();
+ emit finished();
+ }
m_queue.clear();
return true;
}