From fcd148b8d51bb074bdd96075f13afff720ad8d86 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Thu, 16 Jun 2022 17:53:07 +0200 Subject: [PATCH] Playlist: Fix "Stop after this track" greys out next track in dynamic mode Fixes #912 --- src/playlist/playlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playlist/playlist.cpp b/src/playlist/playlist.cpp index 67bc9d5cd..556456e66 100644 --- a/src/playlist/playlist.cpp +++ b/src/playlist/playlist.cpp @@ -352,7 +352,7 @@ QVariant Playlist::data(const QModelIndex &idx, int role) const { if (items_[idx.row()]->HasCurrentForegroundColor()) { return QBrush(items_[idx.row()]->GetCurrentForegroundColor()); } - if (idx.row() < dynamic_history_length()) { + if (idx.row() < dynamic_history_length() - 1) { return QBrush(kDynamicHistoryColor); }