Commit 5073808c authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Remember to clear the code semantic selections.

parent ac124d39
......@@ -743,6 +743,11 @@ void CPPEditor::markSymbols(const QTextCursor &tc, const SemanticInfo &info)
m_referencesCursorPosition = position();
m_references = QtConcurrent::run(&lazyFindReferences, scope, expression, context);
} else {
const QList<QTextEdit::ExtraSelection> selections = extraSelections(CodeSemanticsSelection);
if (! selections.isEmpty())
setExtraSelections(CodeSemanticsSelection, QList<QTextEdit::ExtraSelection>());
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