[vlc-commits] qml: disable clear button when the list is empty
Fatih Uzunoglu
git at videolan.org
Fri Jul 3 14:59:11 CEST 2020
vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Wed Jun 24 23:52:06 2020 +0300| [38d0c059c901baea36d05065ba0e6e0eacd09e0f] | committer: Pierre Lamot
qml: disable clear button when the list is empty
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=38d0c059c901baea36d05065ba0e6e0eacd09e0f
---
modules/gui/qt/playlist/qml/PlaylistToolbar.qml | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/gui/qt/playlist/qml/PlaylistToolbar.qml b/modules/gui/qt/playlist/qml/PlaylistToolbar.qml
index 1da3002458..403d496d77 100644
--- a/modules/gui/qt/playlist/qml/PlaylistToolbar.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistToolbar.qml
@@ -102,6 +102,7 @@ Widgets.NavigableFocusScope {
Layout.alignment: Qt.AlignHCenter
//Layout.minimumWidth: VLCStyle.icon_normal * 2
size: VLCStyle.icon_normal
+ enabled: !mainPlaylistController.empty
iconText: VLCIcons.playlist_clear
onClicked: mainPlaylistController.clear()
focusPolicy: Qt.NoFocus
More information about the vlc-commits
mailing list