Skip to content

Instantly share code, notes, and snippets.

@celeron55
Created November 24, 2012 09:06
Show Gist options
  • Save celeron55/4138960 to your computer and use it in GitHub Desktop.
Save celeron55/4138960 to your computer and use it in GitHub Desktop.
diff --git a/src/playlist/playlistview.cpp b/src/playlist/playlistview.cpp
index 7f7cd84..15d5d2c 100644
--- a/src/playlist/playlistview.cpp
+++ b/src/playlist/playlistview.cpp
@@ -779,6 +779,9 @@ void PlaylistView::MaybeAutoscroll() {
void PlaylistView::JumpToCurrentlyPlayingTrack() {
Q_ASSERT(playlist_);
+ // Usage of the "Jump to the currently playing track" action shall enable autoscroll
+ inhibit_autoscroll_ = false;
+
if (playlist_->current_row() == -1)
return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment