Commit f8ed5c58 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Check the document's revision when creating links.

parent bc77bd9e
......@@ -837,7 +837,7 @@ TextEditor::BaseTextEditor::Link QmlJSTextEditor::findLinkAt(const QTextCursor &
Link link;
const SemanticInfo semanticInfo = m_semanticInfo;
if (semanticInfo.document) {
if (semanticInfo.document && semanticInfo.revision() == document()->revision()) {
CollectASTNodes nodes;
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