diff --git a/src/plugins/qmljsinspector/qmljsclientproxy.cpp b/src/plugins/qmljsinspector/qmljsclientproxy.cpp index 66a50141c4e..9d40cbb8b01 100644 --- a/src/plugins/qmljsinspector/qmljsclientproxy.cpp +++ b/src/plugins/qmljsinspector/qmljsclientproxy.cpp @@ -186,7 +186,7 @@ void ClientProxy::onCurrentObjectsFetched(quint32 queryId, const QVariant &resul return; foreach (const QmlDebugObjectReference &o, m_fetchCurrentObjects) - addObjectToTree(o); + addObjectToTree(o, false); emit selectedItemsChanged(QList() << m_fetchCurrentObjects.last()); } @@ -230,13 +230,14 @@ void ClientProxy::setSelectedItemsByObjectId( } } -void ClientProxy::addObjectToTree(const QmlDebugObjectReference &obj) +void ClientProxy::addObjectToTree(const QmlDebugObjectReference &obj, bool notify) { int count = m_rootObjects.count(); for (int i = 0; i < count; i++) { if (m_rootObjects[i].insertObjectInTree(obj)) { buildDebugIdHashRecursive(obj); - emit objectTreeUpdated(); + if (notify) + emit objectTreeUpdated(); break; } } diff --git a/src/plugins/qmljsinspector/qmljsclientproxy.h b/src/plugins/qmljsinspector/qmljsclientproxy.h index 0e7c9060347..4154060e25b 100644 --- a/src/plugins/qmljsinspector/qmljsclientproxy.h +++ b/src/plugins/qmljsinspector/qmljsclientproxy.h @@ -95,7 +95,7 @@ public: Debugger::QmlAdapter *qmlAdapter() const; quint32 fetchContextObject(const QmlDebugObjectReference& obj); - void addObjectToTree(const QmlDebugObjectReference &obj); + void addObjectToTree(const QmlDebugObjectReference &obj, bool notify = true); void fetchRootObjects(const QmlDebugContextReference &context, bool clear); void insertObjectInTreeIfNeeded(const QmlDebugObjectReference &object);