From 7b5a1d02aa88a1f8988b60da25eba53d31a32809 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Mon, 15 May 2023 15:13:34 -0400 Subject: [PATCH] 2023-05-15 Fred Gleason * Fixed a bug in rdadmin(1) that caused the 'View Raw XML [Front] report to use locally generated XML. Signed-off-by: Fred Gleason --- ChangeLog | 3 +++ rdadmin/feedlistview.cpp | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d2990eac..58d2a769 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 + * Fixed a bug in rdadmin(1) that caused the 'View Raw XML [Front] + report to use locally generated XML. diff --git a/rdadmin/feedlistview.cpp b/rdadmin/feedlistview.cpp index 5b181e44..06016780 100644 --- a/rdadmin/feedlistview.cpp +++ b/rdadmin/feedlistview.cpp @@ -152,15 +152,14 @@ void FeedListView::generateBackItemReportData() void FeedListView::viewFrontRawXmlData() { QDateTime now=QDateTime::currentDateTime(); - bool ok=false; QList 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 {