Commit 2be6973d authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

CppEditor: Updating local uses before matching quick fixes

This is necessary since invoking the context menu changes the cursor
position, on which the local uses and some refactoring actions depend.

Change-Id: I32563085bfb106f754992704e569915b9ee5b127
Task-number: QTCREATORBUG-13388
Reviewed-by: default avatarJoerg Bornemann <>
Reviewed-by: default avatarErik Verbruggen <>
Reviewed-by: default avatarEike Ziller <>
parent c64a3891
......@@ -496,7 +496,8 @@ void CppEditorWidget::contextMenuEvent(QContextMenuEvent *e)
QSignalMapper mapper;
connect(&mapper, SIGNAL(mapped(int)), this, SLOT(performQuickFix(int)));
if (isSemanticInfoValid()) {
if (isSemanticInfoValidExceptLocalUses()) {
AssistInterface *interface = createAssistInterface(QuickFix, ExplicitlyInvoked);
if (interface) {
QScopedPointer<IAssistProcessor> processor(
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