1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-24 07:27:21 +01:00

Simplify code

This commit is contained in:
Jonas Kvinge 2021-02-06 00:32:01 +01:00
parent 89572b07fb
commit 9ed184edbf

View File

@ -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));
} }