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

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) {
return
}
if (haveTreeModel) {
delegateModel.rootIndex = delegateModel.modelIndex(model.index)
++depth
......
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