Correct a bug in Grooveshark that make the subscribed playlists to be added in playlists_.

As a result, subscribed playlists are shown in 'Add to Grooveshark' action (when right clicking a GS song), whereas user cannot actually change this kind of playlist
This commit is contained in:
Arnaud Bienner 2012-01-22 17:28:58 +01:00
parent 79ebbf3894
commit 396f375e8d
1 changed files with 2 additions and 4 deletions

View File

@ -662,10 +662,8 @@ void GroovesharkService::PlaylistSongsRetrieved() {
// Find corresponding playlist info
int playlist_id = pending_retrieve_playlists_.take(reply);
PlaylistInfo& playlist_info = playlists_[playlist_id];
if (subscribed_playlists_.contains(playlist_id)) {
playlist_info = subscribed_playlists_[playlist_id];
}
PlaylistInfo& playlist_info = subscribed_playlists_.contains(playlist_id) ?
subscribed_playlists_[playlist_id] : playlists_[playlist_id];
playlist_info.item_->removeRows(0, playlist_info.item_->rowCount());
QVariantMap result = ExtractResult(reply);