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 { ...@@ -118,6 +118,10 @@ FocusScope {
onEnqueue: gridView.enqueue(model.fullData, model.display) onEnqueue: gridView.enqueue(model.fullData, model.display)
onReplaceAndPlay: gridView.replaceAndPlay(model.fullData, model.display) onReplaceAndPlay: gridView.replaceAndPlay(model.fullData, model.display)
onOpen: { onOpen: {
if (haveTreeModel && !model.hasModelChildren) {
return
}
if (haveTreeModel) { if (haveTreeModel) {
delegateModel.rootIndex = delegateModel.modelIndex(model.index) delegateModel.rootIndex = delegateModel.modelIndex(model.index)
++depth ++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