summaryrefslogtreecommitdiff
path: root/src/plugins/qmljsinspector/qmljsclientproxy.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2010-08-18 15:28:39 +0200
committerOlivier Goffart <olivier.goffart@nokia.com>2010-08-19 11:35:39 +0200
commit0b09a59ef278f6577427de41088f28f2432fec6e (patch)
treee6c5449e59900ddc64300e75af338dae20931d81 /src/plugins/qmljsinspector/qmljsclientproxy.cpp
parentf2d25d4710a5676609381cfb94ca481e9935aab4 (diff)
downloadqt-creator-0b09a59ef278f6577427de41088f28f2432fec6e.tar.gz
QML Debugger: Avoid infinite recursion if one can't find a debug id
Diffstat (limited to 'src/plugins/qmljsinspector/qmljsclientproxy.cpp')
-rw-r--r--src/plugins/qmljsinspector/qmljsclientproxy.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/qmljsinspector/qmljsclientproxy.cpp b/src/plugins/qmljsinspector/qmljsclientproxy.cpp
index ddbe6e45e4..3a923a12f0 100644
--- a/src/plugins/qmljsinspector/qmljsclientproxy.cpp
+++ b/src/plugins/qmljsinspector/qmljsclientproxy.cpp
@@ -146,7 +146,7 @@ void ClientProxy::refreshObjectTree()
}
}
-void ClientProxy::onCurrentObjectsChanged(const QList<int> &debugIds)
+void ClientProxy::onCurrentObjectsChanged(const QList< int >& debugIds, bool requestIfNeeded)
{
QList<QDeclarativeDebugObjectReference> selectedItems;
@@ -161,7 +161,7 @@ void ClientProxy::onCurrentObjectsChanged(const QList<int> &debugIds)
// b) add children to part of an existing tree.
// So the only choice that remains is to update the complete
// tree when we have an unknown debug id.
- if (!m_objectTreeQuery)
+ if (!m_objectTreeQuery && requestIfNeeded)
m_objectTreeQuery = m_client->queryObjectRecursive(m_rootObject, this);
break;
}
@@ -335,7 +335,7 @@ void ClientProxy::objectTreeFetched(QDeclarativeDebugQuery::State state)
if (isDesignClientConnected()) {
if (!m_designClient->selectedItemIds().isEmpty())
- onCurrentObjectsChanged(m_designClient->selectedItemIds());
+ onCurrentObjectsChanged(m_designClient->selectedItemIds(), false);
m_designClient->setObjectIdList(QList<QDeclarativeDebugObjectReference>() << m_rootObject);
}