Play the correct track when inserting tracks into a sorted playlist
authorAlex Merry <kde@randomguy3.me.uk>
Mon, 11 Jun 2012 13:57:22 +0000 (14:57 +0100)
committerAlex Merry <kde@randomguy3.me.uk>
Mon, 11 Jun 2012 13:57:22 +0000 (14:57 +0100)
commit0e07efe5908f927ba20cfbcc46298985c372c819
tree5cc1b7ab606a653dcbf14ef3ee772a373a57be9b
parent9ee51016531e84424f03d4555dd85c48c46d1a07
Play the correct track when inserting tracks into a sorted playlist

When Playlist::Controller::insertOptioned() is told to play the track
that has been inserted, it previously failed to account for the
relocation of the tracks when inserted into a sorted list.  The last
track in the list would end up being played, rather than the first
inserted track.

BUG: 244595
FIXED-IN: 2.6
src/playlist/PlaylistController.cpp
src/playlist/PlaylistModel.h
src/playlist/proxymodels/AbstractModel.h
src/playlist/proxymodels/ProxyBase.cpp
src/playlist/proxymodels/ProxyBase.h