[vlc-devel] [PATCH 3/6] qml/PlaylistMediaList: Update '_actionAtIndex' implementation
Benjamin Arnaud
benjamin.arnaud at videolabs.io
Wed Apr 7 08:29:31 UTC 2021
---
modules/gui/qt/medialibrary/qml/PlaylistMediaList.qml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/gui/qt/medialibrary/qml/PlaylistMediaList.qml b/modules/gui/qt/medialibrary/qml/PlaylistMediaList.qml
index 1bbdec00e4..2f551a4436 100644
--- a/modules/gui/qt/medialibrary/qml/PlaylistMediaList.qml
+++ b/modules/gui/qt/medialibrary/qml/PlaylistMediaList.qml
@@ -136,12 +136,12 @@ Widgets.NavigableFocusScope {
//---------------------------------------------------------------------------------------------
// Private
- function _actionAtIndex(index) {
+ function _actionAtIndex() {
if (modelSelect.selectedIndexes.length > 1) {
medialib.addAndPlay(model.getIdsForIndexes(modelSelect.selectedIndexes));
} else if (modelSelect.selectedIndexes.length === 1) {
- var indexes = modelSelect.selectedIndexes[0];
- showList(model.getDataAt(indexes));
+ var index = modelSelect.selectedIndexes[0];
+ showList(model.getDataAt(index));
}
}
@@ -244,7 +244,7 @@ Widgets.NavigableFocusScope {
onSelectionUpdated: modelSelect.updateSelection(keyModifiers, oldIndex, newIndex)
- onActionAtIndex: _actionAtIndex(index)
+ onActionAtIndex: _actionAtIndex()
//-------------------------------------------------------------------------------------
// Childs
@@ -384,7 +384,7 @@ Widgets.NavigableFocusScope {
//-------------------------------------------------------------------------------------
// Events
- onActionForSelection: _actionAtIndex(selection)
+ onActionForSelection: _actionAtIndex()
onItemDoubleClicked: showList(model)
--
2.25.1
More information about the vlc-devel
mailing list