Add the normal playlist actions to the podcast context menu

This commit is contained in:
David Sansome 2012-03-12 16:21:05 +00:00
parent 40858d26c5
commit a5107b7dfc
1 changed files with 7 additions and 0 deletions

View File

@ -259,6 +259,9 @@ void PodcastService::ShowContextMenu(const QPoint& global_pos) {
context_menu_->addAction(
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(
@ -343,6 +346,10 @@ void PodcastService::ShowContextMenu(const QPoint& global_pos) {
} else {
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);
}