mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-08-07 15:49:47 +02:00
2023-04-24 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in the 'List Feeds' dialog in rdadmin(1) that threw a segfault when reposting a feed. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
8a679e2733
commit
f84ad0cc54
@ -24041,3 +24041,6 @@
|
||||
* Updated the package version to 4.0.0rc3.
|
||||
* Updated the version of the 'rivwebpyapi' PyPI package to
|
||||
4.0.0rc3.
|
||||
2023-04-24 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed a regression in the 'List Feeds' dialog in rdadmin(1) that
|
||||
threw a segfault when reposting a feed.
|
||||
|
@ -331,8 +331,7 @@ void ListFeeds::repostData()
|
||||
// Post Item Data
|
||||
//
|
||||
sql=QString("select ")+
|
||||
"`ID`,"+ // 00
|
||||
"`KEY_NAME` "+ // 01
|
||||
"`ID` "+ // 00
|
||||
"from `PODCASTS` where "+
|
||||
QString::asprintf("`FEED_ID`=%u",feed->id());
|
||||
q=new RDSqlQuery(sql);
|
||||
@ -344,7 +343,7 @@ void ListFeeds::repostData()
|
||||
if(!feed->postPodcast(q->value(0).toUInt(),&err_msg)) {
|
||||
QMessageBox::warning(this,"RDAdmin - "+tr("Error"),
|
||||
tr("Error posting audio to feed")+" \""+
|
||||
q->value(1).toString()+"\"\n"+
|
||||
feed->keyName()+"\"\n"+
|
||||
"["+err_msg+"].");
|
||||
}
|
||||
pd->setValue(++count);
|
||||
@ -358,12 +357,12 @@ void ListFeeds::repostData()
|
||||
pd->setRange(0,1);
|
||||
pd->setValue(0);
|
||||
if(!feed->postXml(&err_msg)) {
|
||||
pd->setValue(1);
|
||||
QMessageBox::warning(this,"RDAdmin - "+tr("Error"),
|
||||
tr("Error posting updated XML to feed")+" \""+
|
||||
q->value(1).toString()+"\"\n"+
|
||||
feed->keyName()+"\"\n"+
|
||||
"["+err_msg+"].");
|
||||
}
|
||||
pd->setValue(1);
|
||||
|
||||
delete pd;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user