From e1cfc0960358923059f54ee554e1ec4ecd1951e2 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 30 Jun 2015 14:31:53 +0200 Subject: 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 --- src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp | 1 - src/plugins/qmlprofiler/qmlprofilerrangemodel.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp b/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp index 7a3cf1d9c9..a875a53026 100644 --- a/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp @@ -70,7 +70,6 @@ bool QmlProfilerAnimationsModel::accepted(const QmlProfilerDataModel::QmlEventTy void QmlProfilerAnimationsModel::loadData() { - clear(); QmlProfilerDataModel *simpleModel = modelManager()->qmlModel(); if (simpleModel->isEmpty()) return; diff --git a/src/plugins/qmlprofiler/qmlprofilerrangemodel.cpp b/src/plugins/qmlprofiler/qmlprofilerrangemodel.cpp index 4957d384a6..f1bf1e7d91 100644 --- a/src/plugins/qmlprofiler/qmlprofilerrangemodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerrangemodel.cpp @@ -72,7 +72,6 @@ bool QmlProfilerRangeModel::supportsBindingLoops() const void QmlProfilerRangeModel::loadData() { - clear(); QmlProfilerDataModel *simpleModel = modelManager()->qmlModel(); if (simpleModel->isEmpty()) return; -- cgit v1.2.3