mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-07 07:41:54 +01:00
Clear playlist on Tune()
Updates issue 17
This commit is contained in:
parent
f471d4bfe1
commit
cd10fda8b7
@ -610,6 +610,10 @@ void LastFMService::FetchMoreTracksFinished() {
|
||||
}
|
||||
|
||||
void LastFMService::Tune(const lastfm::RadioStation& station) {
|
||||
foreach (QueuedTrack* t, playlist_) {
|
||||
delete t;
|
||||
}
|
||||
playlist_.clear();
|
||||
QMap<QString, QString> params;
|
||||
params["method"] = "radio.tune";
|
||||
params["station"] = station.url();
|
||||
|
Loading…
Reference in New Issue
Block a user