Commit d7db1c9b authored by Olivier Goffart's avatar Olivier Goffart
Browse files

QML Live Preview: avoid to crash if ast->qualifiedTypeNameId->name is null

We do not need this check anyway.
parent 6292f1a5
......@@ -41,13 +41,11 @@ class MapObjectWithDebugReference : public Visitor
void MapObjectWithDebugReference::endVisit(UiObjectDefinition* ast)
{
if (ast->qualifiedTypeNameId->name->asString().at(0).isUpper())
processRecursive(root, ast);
processRecursive(root, ast);
}
void MapObjectWithDebugReference::endVisit(UiObjectBinding* ast)
{
if (ast->qualifiedId->name->asString().at(0).isUpper())
processRecursive(root, ast);
processRecursive(root, ast);
}
void MapObjectWithDebugReference::processRecursive(const QDeclarativeDebugObjectReference& object, UiObjectMember* ast)
......
Markdown is supported
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