Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
2b058d8c by Prince Gupta at 2022-01-16T17:00:53+00:00
qml: fix sorting menu

fixup c4edf973406e042ea1d1c74ec14987727bb137d3

- - - - -


3 changed files:

- modules/gui/qt/maininterface/qml/BannerSources.qml
- modules/gui/qt/playlist/qml/PlaylistToolbar.qml
- modules/gui/qt/widgets/qml/SortControl.qml


Changes:

=====================================
modules/gui/qt/maininterface/qml/BannerSources.qml
=====================================
@@ -289,7 +289,7 @@ FocusScope {
 
                                 onSortSelected: {
                                     if (contentModel !== undefined)
-                                        contentModel.sortCriteria = type
+                                        contentModel.sortCriteria = key
                                 }
 
                                 onSortOrderSelected: {


=====================================
modules/gui/qt/playlist/qml/PlaylistToolbar.qml
=====================================
@@ -88,7 +88,7 @@ RowLayout {
             criteriaRole: "key"
 
             onSortSelected: {
-                mainPlaylistController.sortKey = type
+                mainPlaylistController.sortKey = key
             }
 
             onSortOrderSelected: {


=====================================
modules/gui/qt/widgets/qml/SortControl.qml
=====================================
@@ -62,7 +62,7 @@ FocusScope {
     // sortSelected is triggered with new sorting key when a different sorting 
key is selected
     // sortOrderSelected is triggered with Qt.AscendingOrder when different 
sorting key is selected
     // sortOrderSelected is triggered with Qt.AscendingOrder or 
Qt.DescendingOrder when the same sorting key is selected
-    signal sortSelected(int type)
+    signal sortSelected(var key)
     signal sortOrderSelected(int type)
 
     // Settings



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/2b058d8c85944b74886129018aa4ae806b0d3a8e

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/2b058d8c85944b74886129018aa4ae806b0d3a8e
You're receiving this email because of your account on code.videolan.org.


_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to