diff options
-rw-r--r-- | framework/qml/TreeView.qml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/qml/TreeView.qml b/framework/qml/TreeView.qml index 1fcb74a5..8f4f543b 100644 --- a/framework/qml/TreeView.qml +++ b/framework/qml/TreeView.qml | |||
@@ -132,6 +132,9 @@ FocusScope { | |||
132 | if (activeFocus && !selection.hasSelection) { | 132 | if (activeFocus && !selection.hasSelection) { |
133 | selectFirst() | 133 | selectFirst() |
134 | } | 134 | } |
135 | if (!activeFocus) { | ||
136 | selection.clear() | ||
137 | } | ||
135 | } | 138 | } |
136 | 139 | ||
137 | Keys.onDownPressed: { | 140 | Keys.onDownPressed: { |