forked from qt-creator/qt-creator
CppEditor: Fix renaming virtual functions
Before renaming, we first follow the symbol to see whether it originates
from a generated files. We must not try to list the overrides for virtual
member functions in that context.
Amends 06390f5b53
.
Change-Id: Ic17e865a03b884d63875622f54448fef63c24b7e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -625,7 +625,7 @@ void CppEditorWidget::renameUsages(const QString &replacement, QTextCursor curso
|
||||
};
|
||||
CppModelManager::followSymbol(
|
||||
CursorInEditor{cursor, textDocument()->filePath(), this, textDocument()},
|
||||
continuation, true, false);
|
||||
continuation, false, false);
|
||||
}
|
||||
|
||||
void CppEditorWidget::renameUsages(const Utils::FilePath &filePath, const QString &replacement,
|
||||
|
Reference in New Issue
Block a user