Commit 1f1dcfde authored by Lasse Holmstedt's avatar Lasse Holmstedt
Browse files

QML Observer: Fixed updating of selected items

parent 2fe73179
......@@ -969,7 +969,8 @@ static UiQualifiedId *qualifiedTypeNameId(UiObjectMember *m)
void QmlJSTextEditor::updateCursorPositionNow()
{
if (m_contextPane && document() && !semanticInfo().document.isNull() &&
document()->revision() == semanticInfo().document->editorRevision()) {
document()->revision() == semanticInfo().document->editorRevision())
{
Node *oldNode = m_semanticInfo.declaringMemberNoProperties(m_oldCursorPosition);
Node *newNode = m_semanticInfo.declaringMemberNoProperties(position());
if (oldNode != newNode && m_oldCursorPosition != -1)
......@@ -997,6 +998,8 @@ void QmlJSTextEditor::updateCursorPositionNow()
setRefactorMarkers(markers);
}
m_oldCursorPosition = position();
setSelectedElements();
}
}
......@@ -1044,8 +1047,6 @@ void QmlJSTextEditor::updateUsesNow()
}
setExtraSelections(CodeSemanticsSelection, selections);
setSelectedElements();
}
class SelectedElement: protected Visitor
......
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