diff --git a/src/plugins/texteditor/codeassist/quickfixassistprocessor.cpp b/src/plugins/texteditor/codeassist/quickfixassistprocessor.cpp index 83618d243a6..d829011932f 100644 --- a/src/plugins/texteditor/codeassist/quickfixassistprocessor.cpp +++ b/src/plugins/texteditor/codeassist/quickfixassistprocessor.cpp @@ -72,12 +72,19 @@ IAssistProposal *QuickFixAssistProcessor::perform(const IAssistInterface *interf } QList quickFixes; + // ### As the list of quick fixes grows, introduce some way of only showing relevant ones. + // The old priority-based way where the priority is the matching ast-node depth does not + // work well. + foreach (const QList &fixes, matchedOps) + quickFixes += fixes; +#if 0 QMapIterator > it(matchedOps); it.toBack(); if (it.hasPrevious()) { it.previous(); quickFixes = it.value(); } +#endif if (!quickFixes.isEmpty()) { QList items;