Fixed crash when putting a second root item into a QML file.

This commit is contained in:
Erik Verbruggen
2010-02-25 12:56:59 +01:00
parent 878e096e7d
commit 912a1b95a9
2 changed files with 4 additions and 1 deletions

View File

@@ -69,6 +69,8 @@ void ScopeBuilder::setQmlScopeObject(Node *node)
const ObjectValue *scopeObject = _doc->bind()->findQmlObject(node);
if (scopeObject) {
scopeChain.qmlScopeObjects += scopeObject;
} else {
return; // Probably syntax errors, where we're working with a "recovered" AST.
}
#ifndef NO_DECLARATIVE_BACKEND