Compare commits
No commits in common. "1a4f842f1f159ce35a8b332c575007c84f4344d6" and "01b531aabfc3ee732990ca6a439dfd5e6dc586c0" have entirely different histories.
1a4f842f1f
...
01b531aabf
@ -420,9 +420,6 @@ class Window(QMainWindow, Ui_MainWindow):
|
||||
# the playlistis opened.
|
||||
destination_visible_playlist_tab = None
|
||||
for tab in range(self.tabPlaylist.count()):
|
||||
# Non-playlist tabs won't have ids
|
||||
if not hasattr(self.tabPlaylist.widget(tab), 'id'):
|
||||
continue
|
||||
if self.tabPlaylist.widget(tab).id == dlg.plid:
|
||||
destination_visible_playlist_tab = (
|
||||
self.tabPlaylist.widget(tab))
|
||||
|
||||
@ -1032,9 +1032,10 @@ class PlaylistTab(QTableWidget):
|
||||
# Set colour
|
||||
note_colour = Config.COLOUR_NOTES_PLAYLIST
|
||||
note_text = self.item(row, self.COL_TITLE).text()
|
||||
for colour_token in Config.NOTE_COLOURS.keys():
|
||||
if note_text.lower().startswith(colour_token.lower()):
|
||||
note_colour = Config.NOTE_COLOURS[colour_token]
|
||||
note_tokens = note_text.split(":", 1)
|
||||
if len(note_tokens) == 2:
|
||||
if note_tokens[0] in Config.NOTE_COLOURS:
|
||||
note_colour = Config.NOTE_COLOURS[note_tokens[0]]
|
||||
self._set_row_colour(
|
||||
row, QColor(note_colour)
|
||||
)
|
||||
@ -1051,10 +1052,6 @@ class PlaylistTab(QTableWidget):
|
||||
# Set start time
|
||||
self._set_row_start_time(
|
||||
row, self.current_track_start_time)
|
||||
last_played_str = get_relative_date(
|
||||
self.current_track_start_time)
|
||||
self.item(row, self.COL_LAST_PLAYED).setText(
|
||||
last_played_str)
|
||||
# Calculate next_start_time
|
||||
next_start_time = self._calculate_next_start_time(
|
||||
session, row, self.current_track_start_time)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user