From 9e8999586a7b98579de7bcdb4c80e3cc392a8426 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 5 Jul 2016 12:45:14 +0200 Subject: [PATCH] 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 --- src/plugins/qmlprofiler/pixmapcachemodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/qmlprofiler/pixmapcachemodel.cpp b/src/plugins/qmlprofiler/pixmapcachemodel.cpp index d497c1996a6..e21fcca8231 100644 --- a/src/plugins/qmlprofiler/pixmapcachemodel.cpp +++ b/src/plugins/qmlprofiler/pixmapcachemodel.cpp @@ -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) {