forked from qt-creator/qt-creator
QmlProfiler: Accept qrc:/ as local files when setting initial details
If this is not done a lot of Creating and Compiling events look bad. Task-number: QTCREATORBUG-11525 Change-Id: I2af584d3d0468cbc54960c4e16036e9bcf42511b Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -95,7 +95,8 @@ QString getInitialDetails(const QmlProfilerDataModel::QmlEventData &event)
|
||||
bool match = rewrite.exactMatch(details);
|
||||
if (match)
|
||||
details = rewrite.cap(1) + QLatin1String(": ") + rewrite.cap(3);
|
||||
if (details.startsWith(QLatin1String("file://")))
|
||||
if (details.startsWith(QLatin1String("file://")) ||
|
||||
details.startsWith(QLatin1String("qrc:/")))
|
||||
details = details.mid(details.lastIndexOf(QLatin1Char('/')) + 1);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user