forked from qt-creator/qt-creator
QmlProfiler: Actually do simplify the details string when loading
Change-Id: I86303991c9bb3858f9421edd7e12a54c1c9516da Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user