aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/jscommandexecutor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/corelib/buildgraph/jscommandexecutor.cpp')
-rw-r--r--src/lib/corelib/buildgraph/jscommandexecutor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/corelib/buildgraph/jscommandexecutor.cpp b/src/lib/corelib/buildgraph/jscommandexecutor.cpp
index a29b5903a..4a7417820 100644
--- a/src/lib/corelib/buildgraph/jscommandexecutor.cpp
+++ b/src/lib/corelib/buildgraph/jscommandexecutor.cpp
@@ -189,7 +189,8 @@ void JsCommandExecutor::doStart()
void JsCommandExecutor::cancel()
{
- QMetaObject::invokeMethod(m_objectInThread, "cancel", Qt::QueuedConnection);
+ if (!dryRun())
+ QMetaObject::invokeMethod(m_objectInThread, "cancel", Qt::QueuedConnection);
}
void JsCommandExecutor::onJavaScriptCommandFinished()