From f8093bc642cc85292d176c0abd9fffcf45b50126 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Tue, 28 Nov 2023 18:29:19 +0000 Subject: [PATCH] V3: track highlighting fix When a track is moved to above the marked next track, and the moved track is made the next track, the original next track remained marked as next. --- app/playlistmodel.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/playlistmodel.py b/app/playlistmodel.py index ab797a3..640d4bd 100644 --- a/app/playlistmodel.py +++ b/app/playlistmodel.py @@ -1121,8 +1121,6 @@ class PlaylistModel(QAbstractTableModel): """ next_row_was = track_sequence.next.plr_rownum - if next_row_was is not None: - self.invalidate_row(next_row_was) if row_number is None: if next_row_was is None: @@ -1156,6 +1154,9 @@ class PlaylistModel(QAbstractTableModel): self.playlist_rows[row_number].title ) self.invalidate_row(row_number) + + if next_row_was is not None: + self.invalidate_row(next_row_was) self.update_track_times() def setData(