Commit 5e5c5bb0 authored by Erik Verbruggen's avatar Erik Verbruggen Committed by Nikolai Kosjar
Browse files

C++: re-enable quick-fix sorting.



Also make sure that "Apply function signature change" gets to the top
of the list.

Task-number: QTCREATORBUG-9441

Change-Id: Iaf67f8ea9c99ddfc973e610f7e0f4c35b7967629
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent b91a5bcb
......@@ -3696,7 +3696,7 @@ class ApplyDeclDefLinkOperation : public CppQuickFixOperation
public:
explicit ApplyDeclDefLinkOperation(const CppQuickFixInterface &interface,
const QSharedPointer<FunctionDeclDefLink> &link)
: CppQuickFixOperation(interface, 10)
: CppQuickFixOperation(interface, 100)
, m_link(link)
{}
......
......@@ -40,7 +40,6 @@
#include <texteditor/basetexteditor.h>
#include <texteditor/texteditorsettings.h>
#include <texteditor/completionsettings.h>
#include <texteditor/codeassist/basicproposalitemlistmodel.h>
#include <extensionsystem/pluginmanager.h>
#include <utils/qtcassert.h>
......@@ -266,15 +265,8 @@ void CodeAssistantPrivate::requestProposal(AssistReason reason,
}
}
if (IAssistProposal *newProposal = processor->perform(assistInterface)) {
if (kind == QuickFix) {
TextEditor::BasicProposalItemListModel *proposalModel =
static_cast<TextEditor::BasicProposalItemListModel *>(newProposal->model());
proposalModel->setSortingAllowed(false);
}
if (IAssistProposal *newProposal = processor->perform(assistInterface))
displayProposal(newProposal, reason);
}
delete 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