[vlc-commits] qml: fix focusIndex not found when closing contextMenu
Abel Tesfaye
git at videolan.org
Wed Aug 21 15:08:49 CEST 2019
vlc | branch: master | Abel Tesfaye <Abeltesfaye45 at gmail.com> | 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 <jb at videolan.org>
> 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
}
}
}
More information about the vlc-commits
mailing list