From 966edb6bc60a5ade0c5116ffd58797bc69c22e4b Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Sun, 9 Aug 2020 12:11:52 -0400 Subject: [PATCH] 2020-08-09 Fred Gleason * Fixed a bug in the 'Podcast Item List' dialog in rdcastmanager(1) That caused incorrect data to appear in the 'Posted By' column. Signed-off-by: Fred Gleason --- ChangeLog | 3 +++ rdcastmanager/list_casts.cpp | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4a25b686..faf7222d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20186,3 +20186,6 @@ 2020-08-09 Fred Gleason * Modified the 'Podcast Item List' dialog in rdcastmanager(1) to show a blue icon for items with Air Dates in the future. +2020-08-09 Fred Gleason + * Fixed a bug in the 'Podcast Item List' dialog in rdcastmanager(1) + That caused incorrect data to appear in the 'Posted By' column. diff --git a/rdcastmanager/list_casts.cpp b/rdcastmanager/list_casts.cpp index ffd9c462..3908287a 100644 --- a/rdcastmanager/list_casts.cpp +++ b/rdcastmanager/list_casts.cpp @@ -589,7 +589,8 @@ void ListCasts::RefreshItem(RDListViewItem *item) "FEEDS.KEY_NAME,"+ // 06 "PODCASTS.ITEM_CATEGORY,"+ // 07 "PODCASTS.ORIGIN_LOGIN_NAME,"+ // 08 - "PODCASTS.ORIGIN_STATION "+ // 09 + "PODCASTS.ORIGIN_STATION,"+ // 09 + "PODCASTS.ORIGIN_DATETIME "+ // 10 "from PODCASTS left join FEEDS "+ "on PODCASTS.FEED_ID=FEEDS.ID where "+ QString().sprintf("PODCASTS.ID=%d",item->id()); @@ -627,12 +628,12 @@ void ListCasts::RefreshItem(RDListViewItem *item) item->setText(7,q->value(7).toString()); if(q->value(8).isNull()) { item->setText(8,tr("unknown")+" "+tr("at")+" "+ - q->value(3).toDateTime().toString("MM/dd/yyyy hh:mm:ss")); + q->value(10).toDateTime().toString("MM/dd/yyyy hh:mm:ss")); } else { item->setText(8,q->value(8).toString()+" "+tr("on")+" "+ q->value(9).toString()+" "+tr("at")+" "+ - q->value(3).toDateTime().toString("MM/dd/yyyy hh:mm:ss")); + q->value(10).toDateTime().toString("MM/dd/yyyy hh:mm:ss")); } } delete q;