1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-14 10:24:19 +01:00

Scroll to last played track when switching playlists

Currently we just scroll to the last viewed index of the last playlist in the new one. This makes no sense and is frustrating when switching between long and short playlists.
This change scrolls to the last played track in each playlist on transition.
This commit is contained in:
Mark Furneaux 2015-05-19 22:23:03 -04:00
parent 361b2420f9
commit 87ca578a00

View File

@ -272,6 +272,7 @@ void PlaylistView::SetPlaylist(Playlist* playlist) {
DynamicModeChanged(playlist->is_dynamic());
setFocus();
read_only_settings_ = false;
JumpToLastPlayedTrack();
connect(playlist_, SIGNAL(RestoreFinished()), SLOT(JumpToLastPlayedTrack()));
connect(playlist_, SIGNAL(CurrentSongChanged(Song)), SLOT(MaybeAutoscroll()));