Skip to content
Snippets Groups Projects
Commit 2285143e authored by Romain Vimont's avatar Romain Vimont Committed by Thomas Guillem
Browse files

core: playlist: keep current item on expand


When an item is expanded (e.g. due to preparsing), it is replaced by its
(flatten) subitems.

The previous implementation first removed the item, then inserted its
subitems. As a consequence of the removal, the current index was reset
and the player was stopped.

Since we don't want to stop the player on item expansion, instead,
replace the item by its first subitem (if any), then insert the
remaining subitems.

Signed-off-by: default avatarThomas Guillem <thomas@gllm.fr>
parent 798fac44
No related branches found
No related tags found
No related merge requests found
Loading
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