[vlc-commits] qml: cancel closes the playlist and restore focus in medialib view

Pierre Lamot git at videolan.org
Fri Feb 14 12:00:03 CET 2020


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Wed Jan 29 13:26:49 2020 +0100| [a35ce1a4a77ab9b60b1bb898aca71697127c48d5] | committer: Jean-Baptiste Kempf

qml: cancel closes the playlist and restore focus in medialib view

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

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

 modules/gui/qt/medialibrary/qml/MainDisplay.qml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/gui/qt/medialibrary/qml/MainDisplay.qml b/modules/gui/qt/medialibrary/qml/MainDisplay.qml
index b346d409c2..2524b657fb 100644
--- a/modules/gui/qt/medialibrary/qml/MainDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MainDisplay.qml
@@ -235,6 +235,10 @@ Widgets.NavigableFocusScope {
                         navigationLeftItem: stackView
                         navigationUpItem: sourcesBanner
                         navigationDownItem: miniPlayer.expanded ? miniPlayer : undefined
+                        navigationCancel: function() {
+                            rootWindow.playlistVisible = false
+                            stackView.forceActiveFocus()
+                        }
 
                         Rectangle {
                             anchors {



More information about the vlc-commits mailing list