Fix "=" subtotal line
This commit is contained in:
parent
2ce6eb95ed
commit
42b5c2413c
@ -1212,6 +1212,8 @@ class PlaylistModel(QAbstractTableModel):
|
|||||||
Return header text witout markers
|
Return header text witout markers
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if header_text == '=':
|
||||||
|
return ""
|
||||||
while header_text.endswith(Config.SECTION_STARTS):
|
while header_text.endswith(Config.SECTION_STARTS):
|
||||||
header_text = header_text[0:-1]
|
header_text = header_text[0:-1]
|
||||||
while header_text.endswith(Config.SECTION_ENDINGS):
|
while header_text.endswith(Config.SECTION_ENDINGS):
|
||||||
@ -1263,10 +1265,7 @@ class PlaylistModel(QAbstractTableModel):
|
|||||||
for row_number in range(rat.row_number - 1, -1, -1):
|
for row_number in range(rat.row_number - 1, -1, -1):
|
||||||
row_rat = self.playlist_rows[row_number]
|
row_rat = self.playlist_rows[row_number]
|
||||||
if self.is_header_row(row_number):
|
if self.is_header_row(row_number):
|
||||||
if row_rat.note.endswith("-"):
|
if row_rat.note.endswith(Config.SECTION_STARTS):
|
||||||
# There was no start of section
|
|
||||||
return rat.note
|
|
||||||
if row_rat.note.endswith(("+", "=")):
|
|
||||||
# If we are playing this section, also
|
# If we are playing this section, also
|
||||||
# calculate end time if all tracks are played.
|
# calculate end time if all tracks are played.
|
||||||
end_time_str = ""
|
end_time_str = ""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user