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
1 changed files with 4 additions and 0 deletions

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