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

Merge pull request #4863 from TheUbuntuGuy/master

Scroll to last played track when switching playlists
This commit is contained in:
John Maguire 2015-05-20 12:20:19 +01:00
commit 7f016f76fc

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()));