forked from qt-creator/qt-creator
QmlProfiler: Don't needlessly defer state transition from dying to idle
Otherwise we can run into an inconsistent state when we try to restart the process while we're still "waiting" for it to die. Change-Id: I82afd272a73b3be79328c45c8d027621d1feeace Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
@@ -835,7 +835,7 @@ void QmlProfilerTool::profilerStateChanged()
|
|||||||
case QmlProfilerStateManager::AppDying : {
|
case QmlProfilerStateManager::AppDying : {
|
||||||
// If already disconnected when dying, check again that all data was read
|
// If already disconnected when dying, check again that all data was read
|
||||||
if (!d->m_profilerConnections->isConnected())
|
if (!d->m_profilerConnections->isConnected())
|
||||||
QTimer::singleShot(0, this, &QmlProfilerTool::clientsDisconnected);
|
clientsDisconnected();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case QmlProfilerStateManager::Idle :
|
case QmlProfilerStateManager::Idle :
|
||||||
|
Reference in New Issue
Block a user