mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-01 20:06:53 +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) {
|
void LastFMService::Tune(const lastfm::RadioStation& station) {
|
||||||
foreach (QueuedTrack* t, playlist_) {
|
qDeleteAll(playlist_);
|
||||||
delete t;
|
|
||||||
}
|
|
||||||
playlist_.clear();
|
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…
x
Reference in New Issue
Block a user