2020-08-09 Fred Gleason <fredg@paravelsystems.com>

* 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 <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2020-08-09 12:11:52 -04:00
parent 6ed0c9591a
commit 966edb6bc6
2 changed files with 7 additions and 3 deletions

View File

@ -20186,3 +20186,6 @@
2020-08-09 Fred Gleason <fredg@paravelsystems.com>
* 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 <fredg@paravelsystems.com>
* Fixed a bug in the 'Podcast Item List' dialog in rdcastmanager(1)
That caused incorrect data to appear in the 'Posted By' column.

View File

@ -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;