[vlc-commits] [Git][videolan/vlc][master] qml: correct playlist dragitem property adjustment
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Thu Oct 7 10:42:10 UTC 2021
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
a88b1f33 by Fatih Uzunoglu at 2021-10-07T09:34:04+00:00
qml: correct playlist dragitem property adjustment
- - - - -
1 changed file:
- modules/gui/qt/playlist/qml/PlaylistListView.qml
Changes:
=====================================
modules/gui/qt/playlist/qml/PlaylistListView.qml
=====================================
@@ -145,13 +145,14 @@ Control {
function updateComponents(maxCovers) {
var count = root.model.selectedCount
- selection = root.model.getSelection().slice(0, maxCovers)
+ selection = root.model.getSelection()
+ var _selection = selection.slice(0, maxCovers)
- var title = selection.map(function (index){
+ var title = _selection.map(function (index){
return root.model.itemAt(index).title
}).join(", ")
- var covers = selection.map(function (index) {
+ var covers = _selection.map(function (index) {
var artwork = root.model.itemAt(index).artwork
return {artwork: (artwork && artwork.toString()) ? artwork : VLCStyle.noArtCover}
})
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a88b1f3333bc201f6704798f4728f7587a16231a
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a88b1f3333bc201f6704798f4728f7587a16231a
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list