From be94766d25a2fa0f3164ea4748880433a70eb6a5 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Thu, 7 Apr 2016 11:38:57 +0200 Subject: [PATCH] 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 --- src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.cpp b/src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.cpp index efc94d143bd..f2ce13c544f 100644 --- a/src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.cpp @@ -133,6 +133,8 @@ void QmlProfilerDetailsRewriter::requestDetailsForLocation(int requestId, if (!QmlJS::ModelManagerInterface::guessLanguageOfFile(localFile).isQmlLikeLanguage()) return; + localFile = fileInfo.canonicalFilePath(); + PendingEvent ev = {location, localFile, requestId}; d->m_pendingEvents << ev; if (!d->m_pendingDocs.contains(localFile)) {