[vlc-commits] qml: fix binding loop on focus property in GridItem

Pierre Lamot git at videolan.org
Thu Sep 10 16:10:30 CEST 2020


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Tue Sep  1 13:38:37 2020 +0200| [ccb22baede82f80fa95b18a69929f6beb9541d2b] | committer: Pierre Lamot

qml: fix binding loop on focus property in GridItem

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

 modules/gui/qt/widgets/qml/GridItem.qml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/widgets/qml/GridItem.qml b/modules/gui/qt/widgets/qml/GridItem.qml
index f3b10399ea..b0495fdca0 100644
--- a/modules/gui/qt/widgets/qml/GridItem.qml
+++ b/modules/gui/qt/widgets/qml/GridItem.qml
@@ -25,7 +25,7 @@ import org.videolan.medialib 0.1
 import "qrc:///widgets/" as Widgets
 import "qrc:///style/"
 
-Item {
+FocusScope {
     id: root
 
     property alias image: picture.source
@@ -135,7 +135,7 @@ Item {
             anchors.fill: parent
             implicitWidth: layout.implicitWidth
             implicitHeight: layout.implicitHeight
-            focus: root.activeFocus
+            focus: true
 
             /* background visible when selected */
             Rectangle {



More information about the vlc-commits mailing list