From 6c33c98a24da9f55529cfc6f21ecec864367155a Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 18 Jun 2014 11:33:11 +0200 Subject: [PATCH] QmlProfiler: Actually do simplify the details string when loading Change-Id: I86303991c9bb3858f9421edd7e12a54c1c9516da Reviewed-by: Erik Verbruggen --- 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 86d5ef6430b..9a8e80113d5 100644 --- a/src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp @@ -87,7 +87,7 @@ QString getInitialDetails(const QmlProfilerDataModel::QmlEventTypeData &event) // generate details string if (!event.data.isEmpty()) { details = event.data; - details.replace(QLatin1Char('\n'),QLatin1Char(' ')).simplified(); + details = details.replace(QLatin1Char('\n'),QLatin1Char(' ')).simplified(); if (details.isEmpty()) { if (event.rangeType == QmlDebug::Javascript) details = QmlProfilerDataModel::tr("anonymous function");