[vlc-commits] qml: disable playlist sort button when the list is empty

Fatih Uzunoglu git at videolan.org
Thu Oct 15 10:32:55 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Oct  9 19:56:43 2020 +0300| [d4366a606f6281faed473d58d55ece288f34d91b] | committer: Pierre Lamot

qml: disable playlist sort button when the list is empty

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d4366a606f6281faed473d58d55ece288f34d91b
---

 modules/gui/qt/playlist/qml/PlaylistToolbar.qml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/playlist/qml/PlaylistToolbar.qml b/modules/gui/qt/playlist/qml/PlaylistToolbar.qml
index 3741332246..f40411598d 100644
--- a/modules/gui/qt/playlist/qml/PlaylistToolbar.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistToolbar.qml
@@ -81,6 +81,7 @@ Widgets.NavigableFocusScope {
                 id: sort
                 Layout.alignment: Qt.AlignHCenter
                 //Layout.minimumWidth: VLCStyle.icon_normal * 2
+                enabled: !mainPlaylistController.empty
                 popupAlignment: Qt.AlignRight | Qt.AlignTop
 
                 model: [
@@ -96,7 +97,7 @@ Widgets.NavigableFocusScope {
                 ]
                 textRole: "text"
                 criteriaRole: "criteria"
-                
+
                 listWidth: VLCStyle.widthSortBox
                 onSortSelected: {
                     root.sortPL(modelData.criteria)



More information about the vlc-commits mailing list