[vlc-commits] qml: fix genre page not reponding to grid/list mode changes
    Pierre Lamot 
    git at videolan.org
       
    Mon Oct  5 18:10:38 CEST 2020
    
    
  
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Thu Sep 24 14:27:34 2020 +0200| [73db453ed7193ca0e82e18b8ed12b85f5eff67c8] | committer: Pierre Lamot
qml: fix genre page not reponding to grid/list mode changes
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=73db453ed7193ca0e82e18b8ed12b85f5eff67c8
---
 modules/gui/qt/medialibrary/qml/MusicGenres.qml | 11 +++++++++++
 1 file changed, 11 insertions(+)
diff --git a/modules/gui/qt/medialibrary/qml/MusicGenres.qml b/modules/gui/qt/medialibrary/qml/MusicGenres.qml
index 6a0ad55dc9..b08c670a64 100644
--- a/modules/gui/qt/medialibrary/qml/MusicGenres.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicGenres.qml
@@ -262,4 +262,15 @@ Widgets.NavigableFocusScope {
         anchors.fill: parent
         focus: genreModel.count !== 0
     }
+
+    Connections {
+        target: mainInterface
+        onGridViewChanged: {
+            if (mainInterface.gridView) {
+                view.replace(gridComponent)
+            } else {
+                view.replace(tableComponent)
+            }
+        }
+    }
 }
    
    
More information about the vlc-commits
mailing list