Commit d12b99ee authored by Ulf Hermann's avatar Ulf Hermann

QmlProfiler: Don't send stopped() signals before started()

Change-Id: I225c4786b8720e24085175cb1c13c662417fd9d8
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
parent b3fa768d
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment