From 9f234bb007f70fb7dce398bbac876f5d3047df87 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Wed, 16 Apr 2025 10:33:01 +0100 Subject: [PATCH] Fix segfault inserting tracks --- app/playlistmodel.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/playlistmodel.py b/app/playlistmodel.py index 636fbd1..8dbddc2 100644 --- a/app/playlistmodel.py +++ b/app/playlistmodel.py @@ -717,12 +717,11 @@ class PlaylistModel(QAbstractTableModel): track_id=row_data.track_id, note=row_data.note, ) + super().endInsertRows() + # Need to refresh self.playlist_rows because row numbers will have # changed self.refresh_data() - - super().endInsertRows() - self.signals.resize_rows_signal.emit(self.playlist_id) self.track_sequence.update() self.update_track_times()