From ceda573e0e0e0181fc180f575616ec5cd277166e Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 28 May 2015 15:26:10 +0200 Subject: Fix resolving of nested alias properties When looping to resolve nested aliases, make sure we use the correct property index to determine the vme meta object that contains the next level of alias data. Change-Id: Id2077b164a4591c86ccb63e8ed3bb997d719731c Reviewed-by: Simon Hausmann --- src/qml/qml/qqmlbinding.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/qml') diff --git a/src/qml/qml/qqmlbinding.cpp b/src/qml/qml/qqmlbinding.cpp index 0f22bf4521..b5a628d7cc 100644 --- a/src/qml/qml/qqmlbinding.cpp +++ b/src/qml/qml/qqmlbinding.cpp @@ -286,8 +286,8 @@ void QQmlBinding::setTarget(QObject *object, const QQmlPropertyData &core) } while (pd.isAlias()) { - int coreIndex = core.coreIndex; - int valueTypeIndex = core.getValueTypeCoreIndex(); + int coreIndex = pd.coreIndex; + int valueTypeIndex = pd.getValueTypeCoreIndex(); QQmlVMEMetaObject *vme = QQmlVMEMetaObject::getForProperty(object, coreIndex); int aValueTypeIndex; -- cgit v1.2.3