forked from qt-creator/qt-creator
QmlProfiler: Only consider data as lost if we are recording
If the server stopped recording before breaking the connection, we're fine. Change-Id: Ic6d57cd4eb7c831cdd8aca1f305b44b9ecbd10dc Task-number: QTCREATORBUG-20530 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -667,7 +667,7 @@ void QmlProfilerTool::clientsDisconnected()
|
||||
if (d->m_toolBusy) {
|
||||
if (d->m_profilerModelManager->aggregateTraces()) {
|
||||
d->m_profilerModelManager->finalize();
|
||||
} else {
|
||||
} else if (d->m_profilerState->serverRecording()) {
|
||||
// If the application stopped by itself, check if we have all the data
|
||||
if (d->m_profilerState->currentState() == QmlProfilerStateManager::AppDying ||
|
||||
d->m_profilerState->currentState() == QmlProfilerStateManager::Idle) {
|
||||
|
Reference in New Issue
Block a user