summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-04-17 23:19:14 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-04-17 23:19:14 +0200
commitdeb27d4e865ffd7dc15a482db747e53f3247f6e8 (patch)
tree865fdde13603574d3c1128bdb1335d9fe123024e
parent0ad2650fd4084c7c7518b80d0f2d3f1275d89f28 (diff)
downloadkube-deb27d4e865ffd7dc15a482db747e53f3247f6e8.tar.gz
kube-deb27d4e865ffd7dc15a482db747e53f3247f6e8.zip
Select the root index when initially loading
-rw-r--r--framework/qml/TreeView.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/framework/qml/TreeView.qml b/framework/qml/TreeView.qml
index ec249eb9..c4a1a2ab 100644
--- a/framework/qml/TreeView.qml
+++ b/framework/qml/TreeView.qml
@@ -130,6 +130,16 @@ FocusScope {
130 130
131 onActivated: root.activated(index) 131 onActivated: root.activated(index)
132 132
133 //Select the initial index when the folder list is loaded
134 Connections {
135 target: treeView.__listView
136 onCountChanged: {
137 root.selectRootIndex()
138 //Only do this initially
139 enabled = false
140 }
141 }
142
133 alternatingRowColors: false 143 alternatingRowColors: false
134 headerVisible: false 144 headerVisible: false
135 145