qml: fix warning

This commit is contained in:
Prince Gupta 2022-04-15 16:27:50 +05:30 committed by Felix Paul Kühne
parent 06e156b01c
commit 01476d5c4e
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ FocusScope {
}
function resetFocus() {
if (model.count === 0) return
if (!model || model.count === 0) return
var initialIndex = root.initialIndex