diff --git a/src/plugins/cppeditor/cppeditor.cpp b/src/plugins/cppeditor/cppeditor.cpp index 07c892db197..78336077ae8 100644 --- a/src/plugins/cppeditor/cppeditor.cpp +++ b/src/plugins/cppeditor/cppeditor.cpp @@ -880,6 +880,9 @@ void CPPEditor::renameSymbolUnderCursor() break; } } + + if (m_renameSelections.isEmpty()) + findReferences(); } void CPPEditor::onContentsChanged(int position, int charsRemoved, int charsAdded)