Commit 54340fd1 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlProfiler: Make sure the different models agree on their state

Previously, the QmlProfilerSimpleModel would report a count of 1/1 when
empty while all others report 0/1. This leads to the UI waiting
forever for the "missing" data.

Task-number: QTCREATORBUG-11095
Change-Id: I165278caa5a2bece362bf869608d501d7f553c91
Reviewed-by: default avatarKai Koehne <>
parent 84e75043
......@@ -100,7 +100,7 @@ qint64 QmlProfilerSimpleModel::lastTimeMark() const
void QmlProfilerSimpleModel::complete()
m_modelManager->modelProxyCountUpdated(m_modelId, 1, 1);
m_modelManager->modelProxyCountUpdated(m_modelId, isEmpty() ? 0 : 1, 1);
emit changed();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment