Commit 6134f288 authored by Christian Kamm's avatar Christian Kamm
Browse files

Always return a valid scope from Link.

parent 7bc2ab8a
......@@ -153,10 +153,10 @@ ObjectValue *Link::operator()(const QList<Bind *> &binds, Bind *currentBind, UiO
else if (UiObjectBinding *binding = cast<UiObjectBinding *>(currentObject))
scopeObject = currentBind->_qmlObjectBindings.value(binding);
else
return 0;
return currentBind->_interp->globalObject();
if (!scopeObject)
return 0;
return currentBind->_interp->globalObject();
// Build the scope chain.
currentBind->_typeEnvironment->setScope(currentBind->_idEnvironment);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment