QmlProfiler: Reset the serverRecording flag when the connection drops

Otherwise the run control will believe that the application is still
running.

Change-Id: I16ec9762362f526bd89eb21ceb82b89b295d7b5c
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Ulf Hermann
2017-11-08 17:39:14 +01:00
parent 1fa7ad2116
commit 5fabf9af64
3 changed files with 26 additions and 0 deletions

View File

@@ -295,6 +295,7 @@ void QmlProfilerClientManager::qmlDebugConnectionClosed()
QTC_ASSERT(m_connection && m_qmlclientplugin, return);
QTC_ASSERT(!m_connection->isConnected(), return);
disconnectClient();
m_profilerState->setServerRecording(false);
emit connectionClosed();
}