[vlc-commits] qml: fix focus loss within player menu on title change
Pierre Lamot
git at videolan.org
Tue Nov 19 16:49:55 CET 2019
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Wed Oct 16 16:52:44 2019 +0200| [c3e591b7273e83b6e13b64351eb97fb9007c7213] | committer: Jean-Baptiste Kempf
qml: fix focus loss within player menu on title change
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c3e591b7273e83b6e13b64351eb97fb9007c7213
---
modules/gui/qt/qml/player/ControlButtons.qml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/modules/gui/qt/qml/player/ControlButtons.qml b/modules/gui/qt/qml/player/ControlButtons.qml
index c75abf3301..6fb35c6d40 100644
--- a/modules/gui/qt/qml/player/ControlButtons.qml
+++ b/modules/gui/qt/qml/player/ControlButtons.qml
@@ -225,6 +225,17 @@ Item{
title: qsTr("Languages and Tracks")
+
+ Connections {
+ target: player
+ onInputChanged: {
+ subtrackMenu.dismiss()
+ audiotrackMenu.dismiss()
+ videotrackMenu.dismiss()
+ langMenu.dismiss()
+ }
+ }
+
PlayerMenu {
id: subtrackMenu
onOpened: rootPlayer._menu = subtrackMenu
More information about the vlc-commits
mailing list