aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/executor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/corelib/buildgraph/executor.cpp')
-rw-r--r--src/lib/corelib/buildgraph/executor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/corelib/buildgraph/executor.cpp b/src/lib/corelib/buildgraph/executor.cpp
index 1e5a66feb..1b37c17d1 100644
--- a/src/lib/corelib/buildgraph/executor.cpp
+++ b/src/lib/corelib/buildgraph/executor.cpp
@@ -877,8 +877,10 @@ void Executor::finish()
void Executor::checkForCancellation()
{
QBS_ASSERT(m_progressObserver, return);
- if (m_state == ExecutorRunning && m_progressObserver->canceled())
+ if (m_state == ExecutorRunning && m_progressObserver->canceled()) {
cancelJobs();
+ m_evalContext->engine()->cancel();
+ }
}
bool Executor::visit(Artifact *artifact)