Commit bc9c3bfc authored by Matthieu Gallien's avatar Matthieu Gallien 🎵 Committed by Nate Graham
Browse files

avoid setting a wrong viewIndex when opening a list view

parent 042d338a
......@@ -78,7 +78,9 @@ RowLayout {
}
onOpenListView: {
listViews.setCurrentIndex(pageModel.indexFromViewType(viewType))
if (expectedDepth === 1) {
listViews.setCurrentIndex(pageModel.indexFromViewType(viewType))
}
while(browseStackView.depth > expectedDepth) {
browseStackView.pop()
......
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