From adcb00a4c36bdaea8ec73d3784e0a617bf615127 Mon Sep 17 00:00:00 2001 From: Christiaan Janssen Date: Thu, 11 Jul 2013 15:05:04 +0200 Subject: [PATCH] QmlProfiler: get location from details in Creation events Change-Id: Ia9d03694a9f6b766c3c5ed453b0a6c3a4d4d6ced Reviewed-by: Aurindam Jana --- plugins/qmlprofiler/qmlprofilerprocessedmodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/qmlprofiler/qmlprofilerprocessedmodel.cpp b/plugins/qmlprofiler/qmlprofilerprocessedmodel.cpp index b917020414a..0d3285dfc42 100644 --- a/plugins/qmlprofiler/qmlprofilerprocessedmodel.cpp +++ b/plugins/qmlprofiler/qmlprofilerprocessedmodel.cpp @@ -44,7 +44,8 @@ QString getInitialDetails(const QmlProfilerSimpleModel::QmlEventData &event); QmlDebug::QmlEventLocation getLocation(const QmlProfilerSimpleModel::QmlEventData &event) { QmlDebug::QmlEventLocation eventLocation = event.location; - if (event.eventType == QmlDebug::Compiling && eventLocation.filename.isEmpty()) { + if ((event.eventType == QmlDebug::Creating || event.eventType == QmlDebug::Compiling) + && eventLocation.filename.isEmpty()) { eventLocation.filename = getInitialDetails(event); eventLocation.line = 1; eventLocation.column = 1;