forked from qt-creator/qt-creator
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 <kai.koehne@digia.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user