From dac19b42b4ad5557da653cdec4e3f1c3c46c9d1f Mon Sep 17 00:00:00 2001 From: Christiaan Janssen <christiaan.janssen@digia.com> Date: Mon, 18 Feb 2013 16:51:35 +0100 Subject: [PATCH] QmlProfiler: dealing with missing location in Creation events Change-Id: Ia1d74c3f0c1a002956b9f60146f5eafcc15465ea Reviewed-by: Kai Koehne <kai.koehne@digia.com> --- src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp b/src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp index f1ea71d1726..f611b9acde8 100644 --- a/src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp @@ -320,7 +320,7 @@ void QmlProfilerDataModel::addRangedEvent(int type, int bindingType, qint64 star // backwards compatibility: "compiling" events don't have a proper location in older // version of the protocol, but the filename is passed in the details string - if (type == QmlDebug::Compiling && eventLocation.filename.isEmpty()) { + if ((type == QmlDebug::Creating || type == QmlDebug::Compiling) && eventLocation.filename.isEmpty()) { eventLocation.filename = details; eventLocation.line = 1; eventLocation.column = 1; -- GitLab