Skip to content

Remove from playlist when sorted removes the wrong track #515

@alametti

Description

@alametti

Version: 0.13.2
OS: Ubuntu 24.04.1 LTS
Media provider: subsonic/navidrome
Installation method: build from source (with make user-install)

Description: When a playlist is sorted by an index other than "#", using the Remove from playlist menu item will not remove the selected track, but rather the track whose index when the playlist is unsorted equals the position of the selected track (for example, removing the fifth track in a sorted view will instead remove the track in position #5 in the default sort order).

I can't seem to reproduce similar behaviour in other dialogs (for example, adding a track to a playlist from the context menu when sorted by name rather than track number works fine).

Example:
Screenshot from 2024-12-24 15-23-00

Screenshot from 2024-12-24 15-23-11

Maybe something related to these?

func (a *PlaylistPage) onRemoveSelectedFromPlaylist() {

func (t *Tracklist) SelectedTrackIndexes() []int {

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions