forked from qt-creator/qt-creator
QmlProfiler: repeat lookup of filename when retrieving source location
The local file names are in fact not cached and it's unclear if that would be a good idea. Task-number: QTCREATORBUG-11525 Change-Id: Ib4faa5b2cfcc094e24d1a42333c3db1843068539 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 = QUrl(fileUrl).toLocalFile();
|
||||
const QString projectFileName = d->m_projectFinder.findFile(fileUrl);
|
||||
|
||||
QFileInfo fileInfo(projectFileName);
|
||||
if (!fileInfo.exists() || !fileInfo.isReadable())
|
||||
|
||||
Reference in New Issue
Block a user