From 54340fd13b1ae3a07af2f0705541ba2de6d90124 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 17 Dec 2013 16:04:03 +0100 Subject: [PATCH] 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: Kai Koehne --- src/plugins/qmlprofiler/qmlprofilersimplemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmlprofiler/qmlprofilersimplemodel.cpp b/src/plugins/qmlprofiler/qmlprofilersimplemodel.cpp index 0ab64ae572f..6c1cdd2c0d8 100644 --- a/src/plugins/qmlprofiler/qmlprofilersimplemodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofilersimplemodel.cpp @@ -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(); }