[vlc-commits] [Git][videolan/vlc][master] qml/NavigableCol: Fix the 'onActiveFocusChanged' event

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sun May 1 09:59:24 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
e4a624ac by Benjamin Arnaud at 2022-05-01T09:41:54+00:00
qml/NavigableCol: Fix the 'onActiveFocusChanged' event

- - - - -


1 changed file:

- modules/gui/qt/widgets/qml/NavigableCol.qml


Changes:

=====================================
modules/gui/qt/widgets/qml/NavigableCol.qml
=====================================
@@ -51,7 +51,7 @@ T.Control {
 
         // Next item
         if (focusReason === Qt.TabFocusReason) {
-            for (var i = 0; i < count; i++) {
+            for (var i = 0; i < repeater.count; i++) {
                 var item = repeater.itemAt(i);
 
                 if (item.visible && item.enabled) {
@@ -63,7 +63,7 @@ T.Control {
         }
         // Previous item
         else if (focusReason === Qt.BacktabFocusReason) {
-            for (var i = count -1; i >= 0; i--) {
+            for (var i = repeater.count - 1; i >= 0; i--) {
                 var item= repeater.itemAt(i);
 
                 if (item.visible && item.enabled) {
@@ -77,7 +77,7 @@ T.Control {
         else {
             var itemFocus = undefined;
 
-            for (var i = 0 ; i < count; i++) {
+            for (var i = 0 ; i < repeater.count; i++) {
                 var item = repeater.itemAt(i);
 
                 if (item.visible && item.enabled) {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e4a624ac8c7e06f3a42aed0fe421b2c53339ba2d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e4a624ac8c7e06f3a42aed0fe421b2c53339ba2d
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list