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:
Ulf Hermann
2016-07-04 16:34:25 +02:00
parent 005c98817c
commit 51055e6799

View File

@@ -835,7 +835,7 @@ void QmlProfilerTool::profilerStateChanged()
case QmlProfilerStateManager::AppDying : {
// If already disconnected when dying, check again that all data was read
if (!d->m_profilerConnections->isConnected())
QTimer::singleShot(0, this, &QmlProfilerTool::clientsDisconnected);
clientsDisconnected();
break;
}
case QmlProfilerStateManager::Idle :