diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2018-05-31 12:28:03 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2018-05-31 12:01:29 +0000 |
commit | 7b08624ae71660aafed4b1827defcf00254b82e1 (patch) | |
tree | d62f78daba3dabdff236e06fc58dac45d9e7d499 | |
parent | 27b153a5e400e74f15d9d5441a8f286f90da6ff8 (diff) | |
download | qt-creator-7b08624ae71660aafed4b1827defcf00254b82e1.tar.gz |
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>
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilertool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp index 94b74c1504..5b44948d32 100644 --- a/src/plugins/qmlprofiler/qmlprofilertool.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp @@ -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) { |