[vlc-commits] [Git][videolan/vlc][master] qml: do not allow every drop in PlaylistListView

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sat Nov 25 21:33:23 UTC 2023



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
6f882e12 by Fatih Uzunoglu at 2023-11-25T21:20:18+00:00
qml: do not allow every drop in PlaylistListView

- - - - -


1 changed file:

- modules/gui/qt/playlist/qml/PlaylistListView.qml


Changes:

=====================================
modules/gui/qt/playlist/qml/PlaylistListView.qml
=====================================
@@ -71,8 +71,12 @@ T.Pane {
     function isDropAcceptable(drop, index) {
         if (drop.source === dragItem)
             return Helpers.itemsMovable(selectionModel.sortedSelectedIndexesFlat, index)
-        else
+        else if (Helpers.isValidInstanceOf(drop.source, Widgets.DragItem))
+            return true
+        else if (drop.hasUrls)
             return true
+        else
+            return false
     }
 
     function acceptDrop(index, drop) {



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

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