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.
This commit is contained in:
Keith Edmunds 2023-11-28 18:29:19 +00:00
parent cf4d06db16
commit f8093bc642

View File

@ -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(