From cbdcd5f4fc29c40353751d381e420d5c0579c615 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Fri, 20 Oct 2023 16:25:48 +0100 Subject: [PATCH] Fix column spanning to not be recursive --- app/playlists_v3.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/playlists_v3.py b/app/playlists_v3.py index 0ff2b5c..ed2fa7b 100644 --- a/app/playlists_v3.py +++ b/app/playlists_v3.py @@ -2373,6 +2373,12 @@ class PlaylistTab(QTableView): Implement spanning of cells, initiated by signal """ + # Don't set spanning if already in place because that is seen as + # a change to the view and thus it refreshes the data which + # again calls us here. + if self.rowSpan(row, column) == rowSpan and self.columnSpan(row, column) == columnSpan: + return + self.setSpan(row, column, rowSpan, columnSpan) def _track_time_between_rows(