Debugger: Fetch object done only if parent Iname is known.

When an object is created, the properties are fetched and added
to the object tree only if the parent Iname is known.

Change-Id: Id49a1873e9ffaf33689fe11297341cf56472c1be
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
This commit is contained in:
Simjees Abraham
2012-06-05 16:38:34 +02:00
committed by Aurindam Jana
parent 7901aef282
commit d40f41cd77

View File

@@ -542,7 +542,6 @@ void QmlInspectorAgent::queryEngineContext()
m_rootContextQueryId
= m_engineClient->queryRootContexts(m_engine);
m_newObjectsCreated = true;
}
void QmlInspectorAgent::fetchObject(int debugId)
@@ -665,6 +664,12 @@ void QmlInspectorAgent::objectTreeFetched(const ObjectReference &object)
fetchObject(parentId);
return;
}
// 5.x
if (m_engineClient->objectName() == QmlDebug::Constants::QML_DEBUGGER
&& m_newObjectsCreated && parentIname.isEmpty()) {
return;
}
if (debug)
timeElapsed.start();
watchData.append(buildWatchData(last, parentIname, true));