From 6bd99621a29f5064addb5ee915e227acc8531e25 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Tue, 1 Aug 2023 17:52:56 -0400 Subject: [PATCH] 2023-08-01 Fred Gleason * Added an 'ID' column to the 'Podcast Item List' dialog in rdcastmanager(1). Signed-off-by: Fred Gleason --- ChangeLog | 3 +++ lib/rdpodcastlistmodel.cpp | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6e612d87..0ab053aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24300,3 +24300,6 @@ 2023-07-28 Fred Gleason * Fixed a bug in rdcastmanager(1) where changes to podcast metadata would fail to be reflected in the feed list. +2023-08-01 Fred Gleason + * Added an 'ID' column to the 'Podcast Item List' dialog in + rdcastmanager(1). diff --git a/lib/rdpodcastlistmodel.cpp b/lib/rdpodcastlistmodel.cpp index bec053dd..84f60a7c 100644 --- a/lib/rdpodcastlistmodel.cpp +++ b/lib/rdpodcastlistmodel.cpp @@ -96,7 +96,11 @@ RDPodcastListModel::RDPodcastListModel(unsigned feed_id,QObject *parent) d_alignments.push_back(left); d_column_fields.push_back("`PODCASTS`.`ORIGIN_LOGIN_NAME`"); - d_headers.push_back(tr("SHA1")); // 08 + d_headers.push_back(tr("ID")); // 08 + d_alignments.push_back(right); + d_column_fields.push_back("`PODCASTS`.`ID`"); + + d_headers.push_back(tr("SHA1")); // 09 d_alignments.push_back(left); d_column_fields.push_back("`PODCASTS`.`SHA1_HASH`"); } @@ -500,6 +504,9 @@ void RDPodcastListModel::updateRow(int row,RDSqlQuery *q) } icons.push_back(QVariant()); + // Cast ID + texts.push_back(QString::asprintf("%u",q->value(0).toUInt())); + // SHA1 if(q->value(12).toString().isEmpty()) { texts.push_back(tr("[none]"));