Playlist: Fix "Stop after this track" greys out next track in dynamic mode

Fixes #912
This commit is contained in:
Jonas Kvinge 2022-06-16 17:53:07 +02:00
parent fc6c3774b0
commit fcd148b8d5
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}