[vlc-devel] [PATCH 1/4] qml: don't expand the item in ExpandGridView when the grid is empty

Pierre Lamot pierre at videolabs.io
Mon Nov 18 18:21:29 CET 2019


---
 modules/gui/qt/qml/utils/ExpandGridView.qml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/gui/qt/qml/utils/ExpandGridView.qml b/modules/gui/qt/qml/utils/ExpandGridView.qml
index 2bfa6c91db..6e2242bc48 100644
--- a/modules/gui/qt/qml/utils/ExpandGridView.qml
+++ b/modules/gui/qt/qml/utils/ExpandGridView.qml
@@ -66,6 +66,9 @@ NavigableFocusScope {
     }
 
     function switchExpandItem(index) {
+        if (modelCount === 0)
+            return
+
         if (index === _expandIndex)
             _newExpandIndex = -1
         else
-- 
2.17.1



More information about the vlc-devel mailing list