forked from qt-creator/qt-creator
QmlProfiler: Don't send stopped() signals before started()
Change-Id: I225c4786b8720e24085175cb1c13c662417fd9d8 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user