forked from qt-creator/qt-creator
Make sure the path we add to pendingDocs is canonical
Otherwise i had a problem where we were waiting for /usr/share/unity8//Dash/DashPageHeader.qml but then on QmlProfilerDetailsRewriter::documentReady we got /usr/share/unity8/Dash/DashPageHeader.qml and since it's not the same qstring we didn't realize it was the same file Task-number: QTCREATORBUG-16020 Change-Id: I3b07450438d98734fbbff9f8b7a3d9d851ed4e5d Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
This commit is contained in:
@@ -133,6 +133,8 @@ void QmlProfilerDetailsRewriter::requestDetailsForLocation(int requestId,
|
|||||||
if (!QmlJS::ModelManagerInterface::guessLanguageOfFile(localFile).isQmlLikeLanguage())
|
if (!QmlJS::ModelManagerInterface::guessLanguageOfFile(localFile).isQmlLikeLanguage())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
localFile = fileInfo.canonicalFilePath();
|
||||||
|
|
||||||
PendingEvent ev = {location, localFile, requestId};
|
PendingEvent ev = {location, localFile, requestId};
|
||||||
d->m_pendingEvents << ev;
|
d->m_pendingEvents << ev;
|
||||||
if (!d->m_pendingDocs.contains(localFile)) {
|
if (!d->m_pendingDocs.contains(localFile)) {
|
||||||
|
Reference in New Issue
Block a user