Add the normal playlist actions to the podcast context menu
This commit is contained in:
parent
40858d26c5
commit
a5107b7dfc
|
@ -260,6 +260,9 @@ void PodcastService::ShowContextMenu(const QPoint& global_pos) {
|
|||
IconLoader::Load("view-refresh"), tr("Update all podcasts"),
|
||||
app_->podcast_updater(), SLOT(UpdateAllPodcastsNow()));
|
||||
|
||||
context_menu_->addSeparator();
|
||||
context_menu_->addActions(GetPlaylistActions());
|
||||
|
||||
context_menu_->addSeparator();
|
||||
update_selected_action_ = context_menu_->addAction(
|
||||
IconLoader::Load("view-refresh"), tr("Update this podcast"),
|
||||
|
@ -344,6 +347,10 @@ void PodcastService::ShowContextMenu(const QPoint& global_pos) {
|
|||
download_selected_action_->setText(tr("Download this episode"));
|
||||
}
|
||||
|
||||
GetAppendToPlaylistAction()->setEnabled(episodes || podcasts);
|
||||
GetReplacePlaylistAction()->setEnabled(episodes || podcasts);
|
||||
GetOpenInNewPlaylistAction()->setEnabled(episodes || podcasts);
|
||||
|
||||
context_menu_->popup(global_pos);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue