QmlProfiler: Don't rebuild events view from empty model

When changing the selected range the main model doesn't change. If the
main model is empty there is nothing to select and we can skip the
selecting.

Task-number: QTCREATORBUG-15047
Change-Id: I997c104ff7f9f541da0eaade7a519cebd39607a4
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-09-09 14:48:01 +02:00
parent a8b6f30c17
commit b961955fdf

View File

@@ -125,7 +125,8 @@ void QmlProfilerEventsModelProxy::clear()
void QmlProfilerEventsModelProxy::limitToRange(qint64 rangeStart, qint64 rangeEnd)
{
loadData(rangeStart, rangeEnd);
if (!d->modelManager->isEmpty())
loadData(rangeStart, rangeEnd);
}
void QmlProfilerEventsModelProxy::dataChanged()