From f94bb76eacecd34ba1747d44d80cebc921e52dde Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Thu, 3 Nov 2016 16:03:06 +0100 Subject: [PATCH] QmlInspector: Refresh the view when SortStructMembers changes This has the effect of sorting the members immediately, rather than the next time something else changes. Change-Id: I3f3cb261f1fb69b6b36914b811a431b045bb49ae Task-number: QTCREATORBUG-16645 Reviewed-by: hjk --- src/plugins/debugger/qml/qmlinspectoragent.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/debugger/qml/qmlinspectoragent.cpp b/src/plugins/debugger/qml/qmlinspectoragent.cpp index 30d72c378cc..0f430bb45ee 100644 --- a/src/plugins/debugger/qml/qmlinspectoragent.cpp +++ b/src/plugins/debugger/qml/qmlinspectoragent.cpp @@ -84,6 +84,8 @@ QmlInspectorAgent::QmlInspectorAgent(QmlEngine *engine, QmlDebugConnection *conn m_debugIdToIname.insert(WatchItem::InvalidId, "inspect"); connect(action(ShowQmlObjectTree), &Utils::SavedAction::valueChanged, this, &QmlInspectorAgent::updateState); + connect(action(SortStructMembers), &Utils::SavedAction::valueChanged, + this, &QmlInspectorAgent::updateState); m_delayQueryTimer.setSingleShot(true); m_delayQueryTimer.setInterval(100); connect(&m_delayQueryTimer, &QTimer::timeout,