2023-08-01 Fred Gleason <fredg@paravelsystems.com>

* Added an 'ID' column to the 'Podcast Item List' dialog in
	rdcastmanager(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2023-08-01 17:52:56 -04:00
parent 922dd0203f
commit 6bd99621a2
2 changed files with 11 additions and 1 deletions

View File

@ -24300,3 +24300,6 @@
2023-07-28 Fred Gleason <fredg@paravelsystems.com>
* 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 <fredg@paravelsystems.com>
* Added an 'ID' column to the 'Podcast Item List' dialog in
rdcastmanager(1).

View File

@ -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]"));