diff --git a/src/plugins/debugger/qml/qmlinspectoragent.cpp b/src/plugins/debugger/qml/qmlinspectoragent.cpp index ece99ccb761..2a4dc61478f 100644 --- a/src/plugins/debugger/qml/qmlinspectoragent.cpp +++ b/src/plugins/debugger/qml/qmlinspectoragent.cpp @@ -685,6 +685,7 @@ void QmlInspectorAgent::insertObjectInTree(const ObjectReference &object) m_debuggerEngine->watchHandler()->setCurrentItem(iname); m_objectToSelect = -1; } + m_debuggerEngine->watchHandler()->updateWatchersWindow(); } void QmlInspectorAgent::buildDebugIdHashRecursive(const ObjectReference &ref) diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index 973bab20ead..7b1bd7a6dca 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -1200,7 +1200,6 @@ void WatchModel::reexpandItems() void WatchHandler::removeAllData(bool includeInspectData) { m_model->reinitialize(includeInspectData); - updateWatchersWindow(); } void WatchHandler::resetValueCache()