From 953334967c1df54a2c0e7256fdf1e343a37109d7 Mon Sep 17 00:00:00 2001 From: Simjees Abraham Date: Fri, 8 Jun 2012 14:41:53 +0200 Subject: [PATCH] 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 --- src/plugins/debugger/qml/qmlinspectoragent.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/debugger/qml/qmlinspectoragent.cpp b/src/plugins/debugger/qml/qmlinspectoragent.cpp index e9583d55c2..240dad0195 100644 --- a/src/plugins/debugger/qml/qmlinspectoragent.cpp +++ b/src/plugins/debugger/qml/qmlinspectoragent.cpp @@ -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; } -- GitLab