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