Fix playlist_rows row_number corruption
This commit is contained in:
parent
98a8e20baa
commit
40b5fc020d
@ -783,18 +783,6 @@ class PlaylistModel(QAbstractTableModel):
|
|||||||
if old_row != new_row:
|
if old_row != new_row:
|
||||||
row_map[old_row] = new_row
|
row_map[old_row] = new_row
|
||||||
|
|
||||||
# Check to see whether any rows in track_sequence have moved
|
|
||||||
if track_sequence.previous and track_sequence.previous.row_number in row_map:
|
|
||||||
track_sequence.previous.row_number = row_map[
|
|
||||||
track_sequence.previous.row_number
|
|
||||||
]
|
|
||||||
if track_sequence.current and track_sequence.current.row_number in row_map:
|
|
||||||
track_sequence.current.row_number = row_map[
|
|
||||||
track_sequence.current.row_number
|
|
||||||
]
|
|
||||||
if track_sequence.next and track_sequence.next.row_number in row_map:
|
|
||||||
track_sequence.next.row_number = row_map[track_sequence.next.row_number]
|
|
||||||
|
|
||||||
# For SQLAlchemy, build a list of dictionaries that map playlistrow_id to
|
# For SQLAlchemy, build a list of dictionaries that map playlistrow_id to
|
||||||
# new row number:
|
# new row number:
|
||||||
sqla_map: list[dict[str, int]] = []
|
sqla_map: list[dict[str, int]] = []
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user