playlist: Allow selecting same playlist again

This will go unnoticed for Favorites and Banned playlists, but will
allow dynamic playlists to be refreshed without switching to a different
playlist first.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2015-02-06 14:13:04 -05:00
parent d0fb9b2155
commit 93c9877d57
1 changed files with 0 additions and 4 deletions

View File

@ -85,16 +85,12 @@ void playlist :: del(Track *track, const std::string &name)
playlist_q.del(track);
if (name == "Banned")
library :: get_queue()->add(track);
}
void playlist :: select(const std::string &name)
{
IndexEntry *ent;
if (cur_plist == name)
return;
ent = playlist_db.find(name);
if (ent == NULL)
return;