Fix column spanning to not be recursive

This commit is contained in:
Keith Edmunds 2023-10-20 16:25:48 +01:00
parent bb14b34c2e
commit cbdcd5f4fc

View File

@ -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(