From 60c08de2c6b8ee7100987def1f4a811d7fa8ace4 Mon Sep 17 00:00:00 2001 From: Aurindam Jana Date: Thu, 25 Apr 2013 10:50:35 +0200 Subject: [PATCH] QmlInspector: Do not show unnamed properties Task-number: QTCREATORBUG-9069 Change-Id: If0fa1824c9f4b09d9ea4f1c470fdeb18c2836b36 Reviewed-by: Christian Stenger --- src/plugins/debugger/qml/qmlinspectoragent.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/plugins/debugger/qml/qmlinspectoragent.cpp b/src/plugins/debugger/qml/qmlinspectoragent.cpp index 9b6e203081e..0c2de93fcc3 100644 --- a/src/plugins/debugger/qml/qmlinspectoragent.cpp +++ b/src/plugins/debugger/qml/qmlinspectoragent.cpp @@ -833,11 +833,14 @@ QList QmlInspectorAgent::buildWatchData(const ObjectReference &obj, list.append(propertiesWatch); foreach (const PropertyReference &property, obj.properties()) { + const QString propertyName = property.name(); + if (propertyName.isEmpty()) + continue; WatchData propertyWatch; propertyWatch.id = objDebugId; - propertyWatch.exp = property.name().toLatin1(); - propertyWatch.name = property.name(); - propertyWatch.iname = buildIName(propertiesWatch.iname, property.name()); + propertyWatch.exp = propertyName.toLatin1(); + propertyWatch.name = propertyName; + propertyWatch.iname = buildIName(propertiesWatch.iname, propertyName); propertyWatch.type = property.valueTypeName().toLatin1(); propertyWatch.value = property.value().toString(); propertyWatch.setAllUnneeded();