[vlc-devel] [PATCH 22/27] qml: disable playlist sort button when the list is empty
Fatih Uzunoglu
fuzun54 at outlook.com
Fri Oct 9 18:56:43 CEST 2020
---
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)
--
2.25.1
More information about the vlc-devel
mailing list