Fix start time calc that stopped app starting
This commit is contained in:
parent
0c38fc2ef4
commit
a15f181008
@ -1029,11 +1029,11 @@ class PlaylistTab(QTableWidget):
|
|||||||
if not playlist_row:
|
if not playlist_row:
|
||||||
continue
|
continue
|
||||||
note_text = playlist_row.note
|
note_text = playlist_row.note
|
||||||
|
note_colour = None
|
||||||
if not note_text:
|
if not note_text:
|
||||||
note_text = ""
|
note_text = ""
|
||||||
# Get note colour
|
# Get note colour
|
||||||
note_colour = None
|
else:
|
||||||
if note_text:
|
|
||||||
note_colour = NoteColours.get_colour(session, note_text)
|
note_colour = NoteColours.get_colour(session, note_text)
|
||||||
|
|
||||||
# Get track if there is one
|
# Get track if there is one
|
||||||
@ -1152,7 +1152,7 @@ class PlaylistTab(QTableWidget):
|
|||||||
self._set_row_start_time(row, next_start_time)
|
self._set_row_start_time(row, next_start_time)
|
||||||
if track.duration:
|
if track.duration:
|
||||||
next_start_time = self._calculate_end_time(
|
next_start_time = self._calculate_end_time(
|
||||||
start_time, track.duration)
|
next_start_time, track.duration)
|
||||||
# Set end time
|
# Set end time
|
||||||
self._set_row_end_time(row, next_start_time)
|
self._set_row_end_time(row, next_start_time)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user