forked from qt-creator/qt-creator
QmlProfiler: Unify source file lookup between V8 and QML models
They should both look up the source details when loading data and they shouldn't do that again on gotoSourceLocation. Change-Id: I433a4ff36a314822dff320ba4c8f398a6e3eaee3 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -342,7 +342,7 @@ void QmlProfilerTool::gotoSourceLocation(const QString &fileUrl, int lineNumber,
|
||||
if (lineNumber < 0 || fileUrl.isEmpty())
|
||||
return;
|
||||
|
||||
const QString projectFileName = d->m_projectFinder.findFile(fileUrl);
|
||||
const QString projectFileName = QUrl(fileUrl).toLocalFile();
|
||||
|
||||
QFileInfo fileInfo(projectFileName);
|
||||
if (!fileInfo.exists() || !fileInfo.isReadable())
|
||||
|
Reference in New Issue
Block a user