parent
c7253e2211
commit
27261ff871
@ -155,10 +155,18 @@ class PlaylistModel(QAbstractTableModel):
|
|||||||
if file_is_unreadable(rat.path):
|
if file_is_unreadable(rat.path):
|
||||||
return QBrush(QColor(Config.COLOUR_UNREADABLE))
|
return QBrush(QColor(Config.COLOUR_UNREADABLE))
|
||||||
# Current track
|
# Current track
|
||||||
if track_sequence.current and track_sequence.current.row_number == row:
|
if (
|
||||||
|
track_sequence.current
|
||||||
|
and track_sequence.current.playlist_id == self.playlist_id
|
||||||
|
and track_sequence.current.row_number == row
|
||||||
|
):
|
||||||
return QBrush(QColor(Config.COLOUR_CURRENT_PLAYLIST))
|
return QBrush(QColor(Config.COLOUR_CURRENT_PLAYLIST))
|
||||||
# Next track
|
# Next track
|
||||||
if track_sequence.next and track_sequence.next.row_number == row:
|
if (
|
||||||
|
track_sequence.next
|
||||||
|
and track_sequence.next.playlist_id == self.playlist_id
|
||||||
|
and track_sequence.next.row_number == row
|
||||||
|
):
|
||||||
return QBrush(QColor(Config.COLOUR_NEXT_PLAYLIST))
|
return QBrush(QColor(Config.COLOUR_NEXT_PLAYLIST))
|
||||||
|
|
||||||
# Individual cell colouring
|
# Individual cell colouring
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user