diff --git a/modules/gui/qt/medialibrary/qml/VideoAll.qml b/modules/gui/qt/medialibrary/qml/VideoAll.qml index 533315c2a3..43c632f74d 100644 --- a/modules/gui/qt/medialibrary/qml/VideoAll.qml +++ b/modules/gui/qt/medialibrary/qml/VideoAll.qml @@ -99,7 +99,7 @@ FocusScope { } function resetFocus() { - if (model.count === 0) return + if (!model || model.count === 0) return var initialIndex = root.initialIndex