Commit 27e5f4e4 authored by Eugene Popov's avatar Eugene Popov
Browse files

Fix updating apps model

There is no need to check if the model of the current item is not empty, since the current item may be not only a category.

BUG: 444101
parent 3686fea5
......@@ -94,7 +94,7 @@ BasePage {
function onCurrentIndexChanged() {
// Only update row index if the condition is met.
// The 0 index modelForRow isn't supposed to be used. That's just how it works.
if (root.sideBarItem.currentIndex > 0 && sideBarItem.currentItem.model.hasChildren) {
if (root.sideBarItem.currentIndex > 0) {
appsModelRow = root.sideBarItem.currentIndex
}
if (root.sideBarItem.currentIndex === 0
......
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