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:
parent
d0fb9b2155
commit
93c9877d57
|
@ -85,16 +85,12 @@ void playlist :: del(Track *track, const std::string &name)
|
||||||
playlist_q.del(track);
|
playlist_q.del(track);
|
||||||
if (name == "Banned")
|
if (name == "Banned")
|
||||||
library :: get_queue()->add(track);
|
library :: get_queue()->add(track);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void playlist :: select(const std::string &name)
|
void playlist :: select(const std::string &name)
|
||||||
{
|
{
|
||||||
IndexEntry *ent;
|
IndexEntry *ent;
|
||||||
|
|
||||||
if (cur_plist == name)
|
|
||||||
return;
|
|
||||||
|
|
||||||
ent = playlist_db.find(name);
|
ent = playlist_db.find(name);
|
||||||
if (ent == NULL)
|
if (ent == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue