diff --git a/app/playlistmodel.py b/app/playlistmodel.py index 37b8da4..0ef38a2 100644 --- a/app/playlistmodel.py +++ b/app/playlistmodel.py @@ -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]