From 861881319704768550da365865d12437bdf0b671 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Sun, 23 Jun 2024 14:35:05 +0100 Subject: [PATCH] Tidy up function --- app/playlists.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/playlists.py b/app/playlists.py index d77a1ac..27559ee 100644 --- a/app/playlists.py +++ b/app/playlists.py @@ -275,9 +275,10 @@ class PlaylistTab(QTableView): self.dropIndicatorPosition() == QAbstractItemView.DropIndicatorPosition.BelowItem ): - internal_id = to_index.internalId() proxy_index = self.proxy_model.createIndex( - to_index.row() + 1, to_index.column(), internal_id + to_index.row() + 1, + to_index.column(), + to_index.internalId(), ) else: proxy_index = to_index