Retain current/next colours when pasting tracks
This commit is contained in:
parent
0b2e7c7e31
commit
c9c47c3133
@ -704,6 +704,14 @@ class PlaylistTab(QTableWidget):
|
||||
# Queue up time calculations to take place after UI has
|
||||
# updated
|
||||
self._update_start_end_times(session)
|
||||
# It's possible that the current/next tracks are in this
|
||||
# playlist, so check and set.
|
||||
current_row = self._get_current_track_row_number()
|
||||
if current_row is not None:
|
||||
self._set_row_colour_current(current_row)
|
||||
next_row = self._get_next_track_row_number()
|
||||
if next_row is not None:
|
||||
self._set_row_colour_next(next_row)
|
||||
# Needed to wrap notes column correctly - add to event queue so
|
||||
# that it's processed after list is populated
|
||||
QTimer.singleShot(0, self.tab_visible)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user