From d7db1c9b60330ae8778a283a2dce8ec2a6c2faeb Mon Sep 17 00:00:00 2001 From: Olivier Goffart <olivier.goffart@nokia.com> Date: Mon, 19 Jul 2010 11:02:59 +0200 Subject: [PATCH] QML Live Preview: avoid to crash if ast->qualifiedTypeNameId->name is null We do not need this check anyway. --- src/plugins/qmljsinspector/qmljslivetextpreview.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/plugins/qmljsinspector/qmljslivetextpreview.cpp b/src/plugins/qmljsinspector/qmljslivetextpreview.cpp index d3f1b14b68a..173651d515a 100644 --- a/src/plugins/qmljsinspector/qmljslivetextpreview.cpp +++ b/src/plugins/qmljsinspector/qmljslivetextpreview.cpp @@ -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) -- GitLab