From cd460198d9ec3ef07a7c2b4927c66dad28054741 Mon Sep 17 00:00:00 2001 From: Aurindam Jana Date: Wed, 4 Apr 2012 13:22:13 +0200 Subject: [PATCH] QmlJSInspector: Select only current selected item Change-Id: Ibb52e8f1c065d37accc022740ef50b2817d52771 Reviewed-by: Kai Koehne --- src/plugins/qmljsinspector/qmljsinspector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmljsinspector/qmljsinspector.cpp b/src/plugins/qmljsinspector/qmljsinspector.cpp index 9b56917e4bb..7e1188ce14f 100644 --- a/src/plugins/qmljsinspector/qmljsinspector.cpp +++ b/src/plugins/qmljsinspector/qmljsinspector.cpp @@ -615,6 +615,7 @@ void InspectorUi::showObject(const QmlDebugObjectReference &obj) Debugger::QmlAdapter *qmlAdapter = m_clientProxy->qmlAdapter(); if (qmlAdapter) qmlAdapter->setCurrentSelectedDebugInfo(obj.debugId(), displayName(obj)); + m_clientProxy->setSelectedItemsByDebugId(QList() << obj.debugId()); } bool InspectorUi::isRoot(const QmlDebugObjectReference &obj) const @@ -832,7 +833,6 @@ void InspectorUi::crumblePathElementClicked(const QVariant &data) m_onCrumblePathClicked = true; selectItems(debugIds); - m_clientProxy->setSelectedItemsByDebugId(debugIds); } bool InspectorUi::showExperimentalWarning()