diff --git a/src/plugins/cppeditor/cppeditor.cpp b/src/plugins/cppeditor/cppeditor.cpp index 07c892db1977f0b3dc5ba160a29b25a57553089c..78336077ae88c4bbfb877f586e90702e846f2f92 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)