forked from qt-creator/qt-creator
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:
@@ -70,7 +70,6 @@ bool QmlProfilerAnimationsModel::accepted(const QmlProfilerDataModel::QmlEventTy
|
||||
|
||||
void QmlProfilerAnimationsModel::loadData()
|
||||
{
|
||||
clear();
|
||||
QmlProfilerDataModel *simpleModel = modelManager()->qmlModel();
|
||||
if (simpleModel->isEmpty())
|
||||
return;
|
||||
|
@@ -72,7 +72,6 @@ bool QmlProfilerRangeModel::supportsBindingLoops() const
|
||||
|
||||
void QmlProfilerRangeModel::loadData()
|
||||
{
|
||||
clear();
|
||||
QmlProfilerDataModel *simpleModel = modelManager()->qmlModel();
|
||||
if (simpleModel->isEmpty())
|
||||
return;
|
||||
|
Reference in New Issue
Block a user