mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-24 07:27:21 +01:00
Simplify code
This commit is contained in:
parent
89572b07fb
commit
9ed184edbf
@ -207,8 +207,7 @@ void PlaylistManager::Load(const QString &filename) {
|
|||||||
|
|
||||||
Playlist *playlist = AddPlaylist(id, info.completeBaseName(), QString(), QString(), false);
|
Playlist *playlist = AddPlaylist(id, info.completeBaseName(), QString(), QString(), false);
|
||||||
|
|
||||||
QList<QUrl> urls;
|
playlist->InsertUrls(QList<QUrl>() << QUrl::fromLocalFile(filename));
|
||||||
playlist->InsertUrls(urls << QUrl::fromLocalFile(filename));
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user