1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-16 19:52:16 +01:00

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

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);
}