diff options
Diffstat (limited to 'plugins/gtkui/mainplaylist.c')
-rw-r--r-- | plugins/gtkui/mainplaylist.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/gtkui/mainplaylist.c b/plugins/gtkui/mainplaylist.c index 1611f03d..f3cbde3d 100644 --- a/plugins/gtkui/mainplaylist.c +++ b/plugins/gtkui/mainplaylist.c @@ -107,15 +107,16 @@ int main_get_idx (DdbListviewIter it) { } void -main_drag_n_drop (DdbListviewIter before, int from_playlist, uint32_t *indices, int length, int copy) { +main_drag_n_drop (DdbListviewIter before, ddb_playlist_t *from_playlist, uint32_t *indices, int length, int copy) { deadbeef->pl_lock (); -// int curr = deadbeef->plt_get_curr_idx (); + ddb_playlist_t *plt = deadbeef->plt_get_curr (); if (copy) { - deadbeef->pl_copy_items (PL_MAIN, from_playlist, (DB_playItem_t *)before, indices, length); + deadbeef->plt_copy_items (plt, PL_MAIN, from_playlist, (DB_playItem_t *)before, indices, length); } else { - deadbeef->pl_move_items (PL_MAIN, from_playlist, (DB_playItem_t *)before, indices, length); + deadbeef->plt_move_items (plt, PL_MAIN, from_playlist, (DB_playItem_t *)before, indices, length); } + deadbeef->plt_unref (plt); deadbeef->pl_unlock (); } |