QmlProfiler: Remove extra clear() from loadData()

The models are expected to have been cleared already at this point.
Clearing them again on loadData() makes it harder to properly set up
their shown/hidden state.

Change-Id: I70644015edb228f6a7a30d8ab3a4ad4b761686a5
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-06-30 14:31:53 +02:00
parent 95e74f4277
commit e1cfc09603
2 changed files with 0 additions and 2 deletions

View File

@@ -70,7 +70,6 @@ bool QmlProfilerAnimationsModel::accepted(const QmlProfilerDataModel::QmlEventTy
void QmlProfilerAnimationsModel::loadData()
{
clear();
QmlProfilerDataModel *simpleModel = modelManager()->qmlModel();
if (simpleModel->isEmpty())
return;

View File

@@ -72,7 +72,6 @@ bool QmlProfilerRangeModel::supportsBindingLoops() const
void QmlProfilerRangeModel::loadData()
{
clear();
QmlProfilerDataModel *simpleModel = modelManager()->qmlModel();
if (simpleModel->isEmpty())
return;