From 53664857c1d1e03221984249cbba2a4ea3f4b143 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Fri, 14 Feb 2025 21:45:23 +0000 Subject: [PATCH] "=" header fixes Fixes: #276 --- app/playlistmodel.py | 4 ++++ 1 file changed, 4 insertions(+) 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]