1
0
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:
John Maguire 2010-02-25 01:20:59 +00:00
parent f471d4bfe1
commit cd10fda8b7

View File

@ -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();