Add "append to/replace/... playlist" and "Configure" actions to Spotify items.

This commit is contained in:
Arnaud Bienner 2012-07-29 20:12:16 +02:00
parent 82a3c84bf6
commit e6d76a72a5
1 changed files with 6 additions and 3 deletions

View File

@ -519,17 +519,20 @@ void SpotifyService::EnsureMenuCreated() {
return;
context_menu_ = new QMenu;
context_menu_->addActions(GetPlaylistActions());
context_menu_->addSeparator();
context_menu_->addAction(IconLoader::Load("configure"), tr("Configure Spotify..."), this, SLOT(ShowConfig()));
playlist_context_menu_ = new QMenu;
playlist_context_menu_->addActions(GetPlaylistActions());
playlist_context_menu_->addSeparator();
playlist_sync_action_ = playlist_context_menu_->addAction(
IconLoader::Load("view-refresh"),
tr("Make playlist available offline"),
this,
SLOT(SyncPlaylist()));
playlist_context_menu_->addSeparator();
playlist_context_menu_->addAction(IconLoader::Load("configure"),
tr("Configure Spotify..."),
this, SLOT(ShowConfig()));
}
void SpotifyService::ClearSearchResults() {