1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-21 22:25:39 +01:00

qDeleteAll() is awesome

This commit is contained in:
John Maguire 2010-02-25 17:47:01 +00:00
parent 1c0dc4c89c
commit 16d88ff914

View File

@ -610,10 +610,9 @@ void LastFMService::FetchMoreTracksFinished() {
}
void LastFMService::Tune(const lastfm::RadioStation& station) {
foreach (QueuedTrack* t, playlist_) {
delete t;
}
qDeleteAll(playlist_);
playlist_.clear();
QMap<QString, QString> params;
params["method"] = "radio.tune";
params["station"] = station.url();