"=" header fixes

Fixes: #276
This commit is contained in:
Keith Edmunds 2025-02-14 21:45:23 +00:00
parent c8b571b38f
commit 53664857c1

View File

@ -1279,6 +1279,10 @@ class PlaylistModel(QAbstractTableModel):
unplayed_count: int = 0
duration: int = 0
if rat.row_number == 0:
# Meaningless to have a subtotal on row 0
return Config.SUBTOTAL_ON_ROW_ZERO
# Show subtotal
for row_number in range(rat.row_number - 1, -1, -1):
row_rat = self.playlist_rows[row_number]