aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-06-02 17:16:34 +0200
committerUlf Hermann <ulf.hermann@qt.io>2016-06-06 14:51:30 +0000
commitd12b99ee2ddb3c8f51a26b06695297c5edf27a0f (patch)
tree6909f04d563d819442166911bbedaf04a0689269 /src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
parentb3fa768dfdd9569a0a37603c6fe119f2cb5f9d97 (diff)
QmlProfiler: Don't send stopped() signals before started()
Change-Id: I225c4786b8720e24085175cb1c13c662417fd9d8 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/localqmlprofilerrunner.cpp')
-rw-r--r--src/plugins/qmlprofiler/localqmlprofilerrunner.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp b/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
index ce25f18ce7..9b92d2a6a4 100644
--- a/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
+++ b/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
@@ -106,8 +106,11 @@ void LocalQmlProfilerRunner::start()
qPrintable(portOrSocket));
}
+ // queue this, as the process can already die in the call to start().
+ // We want the started() signal to be emitted before the stopped() signal.
connect(&m_launcher, &ApplicationLauncher::processExited,
- this, &LocalQmlProfilerRunner::spontaneousStop);
+ this, &LocalQmlProfilerRunner::spontaneousStop,
+ Qt::QueuedConnection);
m_launcher.start(runnable);
emit started();