forked from qt-creator/qt-creator
		
	Fix semantic checks not being applied to the Qml root object.
By always setting the scope object, even if it is identical to the root object. Done-with: Erik Verbruggen
This commit is contained in:
		| @@ -68,8 +68,7 @@ void ScopeBuilder::setQmlScopeObject(Node *node) | ||||
|  | ||||
|     const ObjectValue *scopeObject = _doc->bind()->findQmlObject(node); | ||||
|     if (scopeObject) { | ||||
|         if (scopeObject != scopeChain.qmlComponentScope.rootObject) | ||||
|             scopeChain.qmlScopeObjects += scopeObject; | ||||
|         scopeChain.qmlScopeObjects += scopeObject; | ||||
|     } | ||||
|  | ||||
| #ifndef NO_DECLARATIVE_BACKEND | ||||
|   | ||||
		Reference in New Issue
	
	Block a user