Commit 9e899958 authored by Ulf Hermann's avatar Ulf Hermann

QmlProfiler: Don't double-insert pixmap end events

If the pixmap started loading before the trace started we already do
insert(...) a few lines above, which includes inserting the end.

Change-Id: Idce0aca84f1c935fc2d4614b758e1575dde59a40
Reviewed-by: Christian Kandeler's avatarChristian Kandeler <christian.kandeler@qt.io>
parent 3e593779
......@@ -349,9 +349,10 @@ void PixmapCacheModel::loadEvent(const QmlEvent &event, const QmlEventType &type
}
}
}
} else {
insertEnd(state.started, pixmapStartTime - startTime(state.started));
}
insertEnd(state.started, pixmapStartTime - startTime(state.started));
if (pixmapType == PixmapLoadingError) {
state.loadState = Error;
switch (state.cacheState) {
......
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