forked from qt-creator/qt-creator
QmlInspector: Make sure children list is always displayed on expansion
Change-Id: I2c55e5a4c95088c1a1944916678483792ffaba95 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
This commit is contained in:
@@ -675,6 +675,13 @@ QList<WatchData> QmlInspectorAgent::buildWatchData(const ObjectReference &obj,
|
||||
list.append(objWatch);
|
||||
m_debugIdToIname.insert(objWatch.id, objWatch.iname);
|
||||
|
||||
if (!m_engine->watchHandler()->isExpandedIName(objWatch.iname)
|
||||
&& obj.needsMoreData()) {
|
||||
// we don't know the children yet. Not adding the 'properties'
|
||||
// element makes sure we're queried on expansion.
|
||||
return list;
|
||||
}
|
||||
|
||||
// properties
|
||||
WatchData propertiesWatch;
|
||||
propertiesWatch.id = objWatch.id;
|
||||
|
||||
Reference in New Issue
Block a user