diff --git a/src/plugins/qmljsinspector/qmljsinspector.cpp b/src/plugins/qmljsinspector/qmljsinspector.cpp index b92d9e2cdc1..1b68e961cfb 100644 --- a/src/plugins/qmljsinspector/qmljsinspector.cpp +++ b/src/plugins/qmljsinspector/qmljsinspector.cpp @@ -543,6 +543,7 @@ void InspectorUi::selectItems(const QList &obj m_propertyInspector->setCurrentObjects(selectionList); populateCrumblePath(objref); gotoObjectReferenceDefinition(objref); + m_clientProxy->setSelectedItemsByObjectId(selectionList); return; } } @@ -761,11 +762,8 @@ void InspectorUi::setupDockWidgets() void InspectorUi::crumblePathElementClicked(int debugId) { - if (debugId != -1) { - QList l; - l << debugId; - selectItems(l); - } + if (debugId != -1) + selectItems(QList() << debugId); } bool InspectorUi::showExperimentalWarning()