[vlc-commits] [Git][videolan/vlc][master] qml: fix sorting from table views

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Apr 20 15:51:11 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
41dc8302 by Prince Gupta at 2023-04-20T14:45:45+00:00
qml: fix sorting from table views

fixup 0e535ad849dbfbab301941568d56cbb92282d1b3

- - - - -


1 changed file:

- modules/gui/qt/widgets/qml/KeyNavigableTableView.qml


Changes:

=====================================
modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
=====================================
@@ -349,7 +349,7 @@ FocusScope {
 
                             Text {
                                 text: (root.model.sortOrder === Qt.AscendingOrder) ? "▼" : "▲"
-                                visible: root.model.sortCriteria === modelData.criteria
+                                visible: root.model.sortCriteria === modelData.model.criteria
                                 font.pixelSize: VLCStyle.fontSize_normal
                                 color: root.colorContext.accent
 
@@ -362,8 +362,8 @@ FocusScope {
                                 }
                             }
                             onClicked: {
-                                if (root.model.sortCriteria !== modelData.criteria)
-                                    root.model.sortCriteria = modelData.criteria
+                                if (root.model.sortCriteria !== modelData.model.criteria)
+                                    root.model.sortCriteria = modelData.model.criteria
                                 else
                                     root.model.sortOrder = (root.model.sortOrder === Qt.AscendingOrder) ? Qt.DescendingOrder : Qt.AscendingOrder
                             }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/41dc83024aad0d541fcc497cf5b67ad1d6bb6dfd

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


VideoLAN code repository instance


More information about the vlc-commits mailing list