diff --git a/src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp b/src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp index f1ea71d1726b96f47cf525fe8691ebc4611cafd5..f611b9acde897c70732e7eae5906a80002d8ad30 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;