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

Change-Id: I225c4786b8720e24085175cb1c13c662417fd9d8
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2016-06-02 17:16:34 +02:00
parent b3fa768dfd
commit d12b99ee2d

View File

@@ -106,8 +106,11 @@ void LocalQmlProfilerRunner::start()
qPrintable(portOrSocket)); 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, connect(&m_launcher, &ApplicationLauncher::processExited,
this, &LocalQmlProfilerRunner::spontaneousStop); this, &LocalQmlProfilerRunner::spontaneousStop,
Qt::QueuedConnection);
m_launcher.start(runnable); m_launcher.start(runnable);
emit started(); emit started();