From 51055e6799fad5685d4f53e742aa6038f5e0c137 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 4 Jul 2016 16:34:25 +0200 Subject: [PATCH] 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 --- src/plugins/qmlprofiler/qmlprofilertool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp index 3427b9a522e..dec45639a00 100644 --- a/src/plugins/qmlprofiler/qmlprofilertool.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp @@ -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 :