diff --git a/src/plugins/cppeditor/cppquickfixes.cpp b/src/plugins/cppeditor/cppquickfixes.cpp index e4ba9de5039..e1e40c3b158 100644 --- a/src/plugins/cppeditor/cppquickfixes.cpp +++ b/src/plugins/cppeditor/cppquickfixes.cpp @@ -1245,7 +1245,7 @@ void ConvertCStringToNSString::match(const CppQuickFixInterface &interface, { CppRefactoringFilePtr file = interface->currentFile(); - if (interface->editor()->mimeType() != QLatin1String(CppTools::Constants::OBJECTIVE_CPP_SOURCE_MIMETYPE)) + if (!interface->editor()->isObjCEnabled()) return; WrapStringLiteral::Type type = WrapStringLiteral::TypeNone;