Debugger: Adding objects to be watched corrected

Adding the objects to be watched corrected in case new objects
were created.

Task-number: QTCREATORBUG-7529
Change-Id: Ica5f852f47882242a0e97692c97c0ca4ee662a4e
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
This commit is contained in:
Simjees Abraham
2012-06-08 14:41:53 +02:00
committed by Aurindam Jana
parent 02d72213b8
commit 953334967c

View File

@@ -667,6 +667,8 @@ void QmlInspectorAgent::objectTreeFetched(const ObjectReference &object)
// 5.x
if (m_engineClient->objectName() == QmlDebug::Constants::QML_DEBUGGER
&& m_newObjectsCreated && parentIname.isEmpty()) {
if (watchData.count())
break;
return;
}