diff options
-rw-r--r-- | framework/qml/TreeView.qml | 10 |
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 | ||