forked from qt-creator/qt-creator
CppEditor: simplified Objective-C status check
Change-Id: Id318fc34b19295dacef63a7192a0ff11fef3e274 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
committed by
Erik Verbruggen
parent
d14767a6af
commit
7047cf0140
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user