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

* Fixed a bug in rdcastmanager(1) that made it possible to edit
	underlying posts when viewing a superfeed.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2020-09-24 17:10:20 -04:00
parent 24d0080511
commit 1b63e5e8c0
2 changed files with 10 additions and 4 deletions

View File

@@ -145,10 +145,12 @@ ListCasts::ListCasts(unsigned feed_id,bool is_super,QWidget *parent)
list_casts_view->setColumnAlignment(8,Qt::AlignLeft);
list_casts_view->addColumn(tr("SHA1"));
list_casts_view->setColumnAlignment(9,Qt::AlignLeft);
connect(list_casts_view,
SIGNAL(doubleClicked(Q3ListViewItem *,const QPoint &,int)),
this,
SLOT(doubleClickedData(Q3ListViewItem *,const QPoint &,int)));
if(!list_feed->isSuperfeed()) {
connect(list_casts_view,
SIGNAL(doubleClicked(Q3ListViewItem *,const QPoint &,int)),
this,
SLOT(doubleClickedData(Q3ListViewItem *,const QPoint &,int)));
}
//
// Post Cart Button
@@ -448,6 +450,7 @@ void ListCasts::userChangedData()
list_cart_button->setEnabled(rda->user()->addPodcast()&&(!is_superfeed));
list_file_button->setEnabled(rda->user()->addPodcast()&&(!is_superfeed));
list_log_button->setEnabled(rda->user()->addPodcast()&&(!is_superfeed));
list_edit_button->setEnabled(rda->user()->editPodcast()&&(!is_superfeed));
list_delete_button->
setEnabled(rda->user()->deletePodcast()&&(!is_superfeed));