GNOME Bugzilla – Bug 728254
Incorrect item is removed in playlists if it has duplicates
Last modified: 2014-06-08 15:44:34 UTC
STR: 1) Add the same URI several times to a playlist 2) Select second instance of the duplicated item in playlist 3) Remove selected item Result: first instance is removed This happens due to the fact that we're passing the song uri to _on_song_removed_from_playlist and looking for this uri in the model one by one. We should pass iter instead
I think it's better if we use Tracker id's for this, so all views have a similar code. Unfortunately, we can't because of the implementation's limitations, but we could use Tracker instead. See bug 729311.
Fixed by porting playlists to Tracker and using Tracker ID's to look for the correct item. https://git.gnome.org/browse/gnome-music/commit/?id=14e9b27de632bd250e5dc7248816280b0272205b