[vlc-commits] [Git][videolan/vlc][master] qml: fix invalid reference in NavigableRow/Col

Steve Lhomme (@robUx4) gitlab at videolan.org
Sun Apr 21 05:14:02 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
d03bcba3 by Pierre Lamot at 2024-04-21T04:51:13+00:00
qml: fix invalid reference in NavigableRow/Col

fix regression from 9e6ef484e82d4288bb12120937b1146f37d8b71b

- - - - -


2 changed files:

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


Changes:

=====================================
modules/gui/qt/widgets/qml/NavigableCol.qml
=====================================
@@ -137,7 +137,7 @@ T.Control {
             onItemAdded: (index, item) => {
                 if (item.enabled) root._countEnabled += 1;
 
-                item.onEnabledChanged.connect(() => { root._countEnabled += (target.enabled ? 1 : -1) });
+                item.onEnabledChanged.connect(() => { root._countEnabled += (item.enabled ? 1 : -1) });
 
                 item.Navigation.upAction = function() {
                     let i = index;


=====================================
modules/gui/qt/widgets/qml/NavigableRow.qml
=====================================
@@ -143,7 +143,7 @@ T.Control {
             onItemAdded: (index, item) => {
                 if (item.enabled) root._countEnabled += 1;
 
-                item.onEnabledChanged.connect(() => { root._countEnabled += (target.enabled ? 1 : -1) })
+                item.onEnabledChanged.connect(() => { root._countEnabled += (item.enabled ? 1 : -1) })
 
                 item.Navigation.parentItem = root;
 



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d03bcba3d5e8b1f1b2c4943761a29c61c1b924f2
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