[vlc-commits] qml: don't force activeFocus when building player buttons widgets

Pierre Lamot git at videolan.org
Thu Aug 29 10:45:08 CEST 2019


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Tue Aug 27 15:52:36 2019 +0200| [6a80535006e1c769ae19c24537af48a0f85c9160] | committer: Jean-Baptiste Kempf

qml: don't force activeFocus when building player buttons widgets

  This might not be the expected behavior, ie: building the miniplayer whereas
  it's hidden or not the active widget.

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

 modules/gui/qt/qml/player/PlayerButtonsLayout.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/qml/player/PlayerButtonsLayout.qml b/modules/gui/qt/qml/player/PlayerButtonsLayout.qml
index fb410732cf..df96583817 100644
--- a/modules/gui/qt/qml/player/PlayerButtonsLayout.qml
+++ b/modules/gui/qt/qml/player/PlayerButtonsLayout.qml
@@ -44,7 +44,7 @@ RowLayout{
                     return
                 else
                     if (!buttonrow._focusGiven){
-                        buttonloader.item.forceActiveFocus()
+                        buttonloader.item.focus = true
                         buttonrow._focusGiven = true
                     }
                 if(buttonloader.item instanceof Utils.IconToolButton)



More information about the vlc-commits mailing list