Commit 9c189c58 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

do not open items when they are in a tree model but without childs

parent 6744a932
......@@ -118,6 +118,10 @@ FocusScope {
onEnqueue: gridView.enqueue(model.fullData, model.display)
onReplaceAndPlay: gridView.replaceAndPlay(model.fullData, model.display)
onOpen: {
if (haveTreeModel && !model.hasModelChildren) {
if (haveTreeModel) {
delegateModel.rootIndex = delegateModel.modelIndex(model.index)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment