QmlProfiler: dealing with missing location in Creation events

Change-Id: Ia1d74c3f0c1a002956b9f60146f5eafcc15465ea
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Christiaan Janssen
2013-02-18 16:51:35 +01:00
committed by Kai Koehne
parent 5833433bed
commit dac19b42b4

View File

@@ -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;