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:
parent
1c0dc4c89c
commit
16d88ff914
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user