Skip to content
Snippets Groups Projects
Commit 318bb4c3 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Only show ObjC-quickfix when the editor has the appropriate mime-type.

Reviewed-by: Thorbjørn Lindeijer
parent cf125618
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,7 @@
#include <Name.h>
#include <Literals.h>
#include <cpptools/cpptoolsconstants.h>
#include <cpptools/cppmodelmanagerinterface.h>
#include <QtDebug>
......@@ -1395,7 +1396,8 @@ int CPPQuickFixCollector::startCompletion(TextEditor::ITextEditable *editable)
candidates.append(useInverseOp);
candidates.append(flipBinaryOp);
candidates.append(wrapStringLiteral);
candidates.append(wrapCString);
if (_editor->mimeType() == CppTools::Constants::OBJECTIVE_CPP_SOURCE_MIMETYPE)
candidates.append(wrapCString);
candidates.append(useFastStringConcat);
QMap<int, QList<QuickFixOperationPtr> > matchedOps;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment