[vlc-commits] qml: fix playlist not shown when clicking on the playlist button

Pierre Lamot git at videolan.org
Tue Jul 16 10:13:32 CEST 2019


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Wed Jul 10 10:41:54 2019 +0200| [6190aa2d09dd4968c0f6958d512fbb2d7615b888] | committer: Jean-Baptiste Kempf

qml: fix playlist not shown when clicking on the playlist button

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt/qml/player/ControlBar.qml     | 1 -
 modules/gui/qt/qml/player/ControlButtons.qml | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/gui/qt/qml/player/ControlBar.qml b/modules/gui/qt/qml/player/ControlBar.qml
index b4cd089321..7889717410 100644
--- a/modules/gui/qt/qml/player/ControlBar.qml
+++ b/modules/gui/qt/qml/player/ControlBar.qml
@@ -33,7 +33,6 @@ Utils.NavigableFocusScope {
     id: root
 
     signal showTrackBar()
-    signal showPlaylist()
 
     property bool noAutoHide: _lockAutoHide !== 0
     property int  _lockAutoHide: 0 //count the number of element locking the autoHide
diff --git a/modules/gui/qt/qml/player/ControlButtons.qml b/modules/gui/qt/qml/player/ControlButtons.qml
index cd51f415ec..d746dd6da4 100644
--- a/modules/gui/qt/qml/player/ControlButtons.qml
+++ b/modules/gui/qt/qml/player/ControlButtons.qml
@@ -161,7 +161,7 @@ Item{
             objectName: "IconToolButton"
             size: VLCStyle.icon_medium
             text: VLCIcons.playlist
-            onClicked: root.showPlaylist()
+            onClicked: rootWindow.playlistVisible = !rootWindow.playlistVisible
             property bool acceptFocus: true
         }
 



More information about the vlc-commits mailing list