From f6b791815a493025c57e19062547e46bf6ce9a12 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Thu, 3 May 2018 14:50:47 +0200 Subject: [PATCH] Tracing: Reset the selected type ID when clicking empty space We want to get rid of the selection after all. Change-Id: I3a8b1b785d9d81870e5ff368a31e1642f399a47f Reviewed-by: Christian Kandeler --- src/libs/tracing/qml/FlameGraphView.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/tracing/qml/FlameGraphView.qml b/src/libs/tracing/qml/FlameGraphView.qml index 47fb90578da..4410f38b47e 100644 --- a/src/libs/tracing/qml/FlameGraphView.qml +++ b/src/libs/tracing/qml/FlameGraphView.qml @@ -122,11 +122,13 @@ ScrollView { MouseArea { anchors.fill: parent onClicked: { + selectedTypeId = -1; tooltip.selectedNode = null; if (model !== null) model.typeSelected(-1); } onDoubleClicked: { + selectedTypeId = -1; tooltip.selectedNode = null; if (model !== null) model.typeSelected(-1);