diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-06-30 14:31:53 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-06-30 14:40:42 +0000 |
commit | e1cfc0960358923059f54ee554e1ec4ecd1951e2 (patch) | |
tree | 348110b4f3dfa651699f067435b459856d68f3aa | |
parent | 95e74f427765961f5a3dafd1060db22ff6d4b97e (diff) | |
download | qt-creator-e1cfc0960358923059f54ee554e1ec4ecd1951e2.tar.gz |
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>
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp | 1 | ||||
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilerrangemodel.cpp | 1 |
2 files changed, 0 insertions, 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; |