mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-23 07:50:13 +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) {
|
void LastFMService::Tune(const lastfm::RadioStation& station) {
|
||||||
|
foreach (QueuedTrack* t, playlist_) {
|
||||||
|
delete t;
|
||||||
|
}
|
||||||
|
playlist_.clear();
|
||||||
QMap<QString, QString> params;
|
QMap<QString, QString> params;
|
||||||
params["method"] = "radio.tune";
|
params["method"] = "radio.tune";
|
||||||
params["station"] = station.url();
|
params["station"] = station.url();
|
||||||
|
Loading…
Reference in New Issue
Block a user