• Jakob Leben's avatar
    Qt: Playlist drag and drop corrections · 4bd42ef6
    Jakob Leben authored
    - Use item ids instead of pointers for drag data to prevent usage after freeing.
    - The list of selected items that contitutes drag data is sorted correctly according to item position in tree. This keeps their relative order after drop operation even if they originated from different parent nodes.
    - If a parent and any of it's children are selected, only the parent enters drag'n'drop operation. Children are thus not moved out of the parent when dropping.
    - Copying by drag and drop performs a recursive copy of all children.
    4bd42ef6
playlist_item.hpp 2.07 KB