Skip to content
Snippets Groups Projects
Commit 6f882e12 authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Jean-Baptiste Kempf
Browse files

qml: do not allow every drop in PlaylistListView

parent 328563e4
No related branches found
No related tags found
1 merge request!4562qml: do not allow every drop in PlaylistListView
Pipeline #409933 passed with stages
in 32 minutes and 35 seconds
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment