vlc | branch: master | Abel Tesfaye <[email protected]> | Wed Aug 7 14:34:58 2019 +0300| [65bdf716fb7ebf739c6142170ed01e5087d450ce] | committer: Jean-Baptiste Kempf
qml: fix focusIndex not found when closing contextMenu Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=65bdf716fb7ebf739c6142170ed01e5087d450ce --- modules/gui/qt/qml/utils/ListItem.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/gui/qt/qml/utils/ListItem.qml b/modules/gui/qt/qml/utils/ListItem.qml index 1e58d944ed..891e518b94 100644 --- a/modules/gui/qt/qml/utils/ListItem.qml +++ b/modules/gui/qt/qml/utils/ListItem.qml @@ -197,17 +197,17 @@ NavigableFocusScope { } } Keys.onLeftPressed: { - if (focusIndex === 0) + if (toolButtons.focusIndex === 0) presentation.focus = true else { - focusIndex -= 1 + toolButtons.focusIndex -= 1 } } Keys.onRightPressed: { - if (focusIndex === (actionButtons.length - !root.showContextButton ? 1 : 0 ) ) + if (toolButtons.focusIndex === (actionButtons.length - (!root.showContextButton ? 1 : 0) ) ) root.actionRight(0) else { - focusIndex += 1 + toolButtons.focusIndex += 1 } } } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
