Fix column spanning to not be recursive
This commit is contained in:
parent
bb14b34c2e
commit
cbdcd5f4fc
@ -2373,6 +2373,12 @@ class PlaylistTab(QTableView):
|
|||||||
Implement spanning of cells, initiated by signal
|
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)
|
self.setSpan(row, column, rowSpan, columnSpan)
|
||||||
|
|
||||||
def _track_time_between_rows(
|
def _track_time_between_rows(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user