aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/buildgraph/jscommandexecutor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/buildgraph/jscommandexecutor.cpp')
-rw-r--r--src/lib/buildgraph/jscommandexecutor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/buildgraph/jscommandexecutor.cpp b/src/lib/buildgraph/jscommandexecutor.cpp
index 4b668b2ea..fa94e7d9a 100644
--- a/src/lib/buildgraph/jscommandexecutor.cpp
+++ b/src/lib/buildgraph/jscommandexecutor.cpp
@@ -48,6 +48,7 @@
#include <QMutex>
#include <QMutexLocker>
#include <QThread>
+#include <QTimer>
namespace qbs {
namespace Internal {
@@ -150,7 +151,7 @@ void JsCommandExecutor::waitForFinished()
void JsCommandExecutor::doStart()
{
if (dryRun()) {
- emit finished();
+ QTimer::singleShot(0, this, SIGNAL(finished())); // Don't call back on the caller.
return;
}
QFuture<JSRunner::result_type> future = QtConcurrent::run(JSRunner(jsCommand()), transformer());