diff --git a/app/playlists.py b/app/playlists.py index 581a7d9..6043b63 100644 --- a/app/playlists.py +++ b/app/playlists.py @@ -1002,8 +1002,6 @@ class PlaylistTab(QTableWidget): note_text = playlist_row.note # Get note colour note_colour = NoteColours.get_colour(session, note_text) - if not note_colour: - note_colour = Config.COLOUR_NOTES_PLAYLIST # Set row height self.resizeRowToContents(row) @@ -1029,7 +1027,7 @@ class PlaylistTab(QTableWidget): section_time += track.duration # Colour any note - if note_text: + if note_colour: (self.item(row, columns['row_notes'].idx) .setBackground(QColor(note_colour))) @@ -1132,6 +1130,8 @@ class PlaylistTab(QTableWidget): elif note_text.endswith("+"): section_start_plr = playlist_row section_time = 0 + if not note_colour: + note_colour = Config.COLOUR_NOTES_PLAYLIST self._set_row_colour(row, QColor(note_colour)) # Section headers are always bold self._set_row_bold(row)