From 3867932e1e9a1b0452f9c568d459306112df930b Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 14 Dec 2025 04:55:20 +0100 Subject: [PATCH] PlaylistView: Don't automatically scroll on dynamic playlists Fixes #1427 --- src/playlist/playlistview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/playlist/playlistview.cpp b/src/playlist/playlistview.cpp index 340d3e737..641a40802 100644 --- a/src/playlist/playlistview.cpp +++ b/src/playlist/playlistview.cpp @@ -1371,8 +1371,9 @@ void PlaylistView::rowsInserted(const QModelIndex &parent, const int start, cons QTreeView::rowsInserted(parent, start, end); - if (at_end) { + if (at_end && playlist_ && !playlist_->is_dynamic()) { // If the rows were inserted at the end of the playlist then let's scroll the view so the user can see. + // However, don't do this for dynamic playlists as they continuously add items at the end, and we want to keep the current playing track visible instead. scrollTo(model()->index(start, 0, parent), QAbstractItemView::PositionAtTop); }