diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2010-08-18 15:28:39 +0200 |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-08-19 11:35:39 +0200 |
commit | 0b09a59ef278f6577427de41088f28f2432fec6e (patch) | |
tree | e6c5449e59900ddc64300e75af338dae20931d81 /src/plugins/qmljsinspector/qmljsclientproxy.cpp | |
parent | f2d25d4710a5676609381cfb94ca481e9935aab4 (diff) | |
download | qt-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.cpp | 6 |
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); } |