From b8674062eb6ecde3a0c075af6ff3280abbd29db9 Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Mon, 3 Dec 2012 15:36:45 +0100 Subject: [PATCH] QmlJSEditor: Another QT_NO_CAST_FROM_ASCII fix. Change-Id: I6ab48750a74451df525115989fb694e3714bcd61 Reviewed-by: Orgad Shaneh --- src/plugins/qmljseditor/qmloutlinemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmljseditor/qmloutlinemodel.cpp b/src/plugins/qmljseditor/qmloutlinemodel.cpp index eca23c7e4f5..20f915e4a55 100644 --- a/src/plugins/qmljseditor/qmloutlinemodel.cpp +++ b/src/plugins/qmljseditor/qmloutlinemodel.cpp @@ -269,7 +269,7 @@ private: AST::IdentifierExpression *lhsIdent = AST::cast(binExp->left); AST::ObjectLiteral *rhsObjLit = AST::cast(binExp->right); - if (lhsIdent && rhsObjLit && (lhsIdent->name == "testcase") + if (lhsIdent && rhsObjLit && (lhsIdent->name == QLatin1String("testcase")) && (binExp->op == QSOperator::Assign)) { QModelIndex index = m_model->enterTestCase(rhsObjLit); m_nodeToIndex.insert(rhsObjLit, index);