From fe5a3a024ac7e5f0cfa89d58c89ac705940bd5a4 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 19 Feb 2014 12:54:02 +0100 Subject: [new compiler] Fix error location when id property is used in list model elements Change-Id: Iec648d593d30117c512009dcc6ab0d50b8fc51af Reviewed-by: Lars Knoll --- src/qml/types/qqmllistmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/types') diff --git a/src/qml/types/qqmllistmodel.cpp b/src/qml/types/qqmllistmodel.cpp index 50b7614c3b..eed76ee09e 100644 --- a/src/qml/types/qqmllistmodel.cpp +++ b/src/qml/types/qqmllistmodel.cpp @@ -2407,7 +2407,7 @@ bool QQmlListModelParser::compileProperty(const QV4::CompiledData::QmlUnit *qmlU } if (!qmlUnit->header.stringAt(target->idIndex).isEmpty()) { - error(binding, QQmlListModel::tr("ListElement: cannot use reserved \"id\" property")); + error(target->locationOfIdProperty, QQmlListModel::tr("ListElement: cannot use reserved \"id\" property")); return false; } -- cgit v1.2.3