From 0f77cef37ad80dbf18ac7794e657ed83f197f5f6 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Sun, 12 Nov 2023 22:35:44 +0000 Subject: [PATCH] WIP V3: editing header rows works --- app/playlistmodel.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/playlistmodel.py b/app/playlistmodel.py index cd95357..0caab68 100644 --- a/app/playlistmodel.py +++ b/app/playlistmodel.py @@ -375,6 +375,11 @@ class PlaylistModel(QAbstractTableModel): Return text for editing """ + # If this is a header row and we're being asked for the + # HEADER_NOTES_COLUMN, return the note value + if self.is_header_row(row) and column == HEADER_NOTES_COLUMN: + return QVariant(prd.note) + if column == Col.TITLE.value: return QVariant(prd.title) if column == Col.ARTIST.value: