Commit be94766d authored by Albert Astals Cid's avatar Albert Astals Cid

Make sure the path we add to pendingDocs is canonical

Otherwise i had a problem where we were waiting for
but then on QmlProfilerDetailsRewriter::documentReady we got
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: default avatarUlf Hermann <>
parent 57f31cb8
......@@ -133,6 +133,8 @@ void QmlProfilerDetailsRewriter::requestDetailsForLocation(int requestId,
if (!QmlJS::ModelManagerInterface::guessLanguageOfFile(localFile).isQmlLikeLanguage())
localFile = fileInfo.canonicalFilePath();
PendingEvent ev = {location, localFile, requestId};
d->m_pendingEvents << ev;
if (!d->m_pendingDocs.contains(localFile)) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment