diff options
author | Albert Astals Cid <[email protected]> | 2016-04-07 11:38:57 +0200 |
---|---|---|
committer | Albert Astals Cid <[email protected]> | 2016-04-07 11:07:53 +0000 |
commit | be94766d25a2fa0f3164ea4748880433a70eb6a5 (patch) | |
tree | 9f5d5a956cd43da8028b8663707b48fbc4c9a8cf /src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.cpp | |
parent | 57f31cb89b6fc74754e80eefb3813f9a5c57fa3c (diff) |
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 <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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)) { |