Commit b961955f authored by Ulf Hermann's avatar Ulf Hermann
Browse files

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: default avatarJoerg Bornemann <joerg.bornemann@theqtcompany.com>
parent a8b6f30c
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment