2023-05-15 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdadmin(1) that caused the 'View Raw XML [Front]
	report to use locally generated XML.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2023-05-15 15:13:34 -04:00
parent c2f9bd52fb
commit 7b5a1d02aa
2 changed files with 5 additions and 3 deletions

View File

@ -24092,3 +24092,6 @@
* Added 'View Raw XML [Front]' and 'View Raw XML [Back]' items to
the right-click menu in the 'Rivendell Feed List' dialog in
rdadmin(1).
2023-05-15 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdadmin(1) that caused the 'View Raw XML [Front]
report to use locally generated XML.

View File

@ -152,15 +152,14 @@ void FeedListView::generateBackItemReportData()
void FeedListView::viewFrontRawXmlData()
{
QDateTime now=QDateTime::currentDateTime();
bool ok=false;
QList<unsigned> front_ids;
QString err_msg;
RDFeedListModel *m=(RDFeedListModel *)model();
QString keyname=m->data(m->index(d_mouse_row,0)).toString();
RDFeed *feed=new RDFeed(keyname,rda->config(),this);
QByteArray xml;
if(feed->frontActiveCasts(&front_ids,&err_msg)) {
QString xml=feed->rssXml(&err_msg,now,&ok,&front_ids);
if(feed->rssFrontXml(&xml,&err_msg)) {
RDTextFile(xml,true);
}
else {