From a5107b7dfcec12c365c752c9bb5c09c00f058add Mon Sep 17 00:00:00 2001 From: David Sansome Date: Mon, 12 Mar 2012 16:21:05 +0000 Subject: [PATCH] Add the normal playlist actions to the podcast context menu --- src/podcasts/podcastservice.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/podcasts/podcastservice.cpp b/src/podcasts/podcastservice.cpp index 839c1d77e..129c4c62e 100644 --- a/src/podcasts/podcastservice.cpp +++ b/src/podcasts/podcastservice.cpp @@ -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); }