Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 4c921d33 authored by Michael Pyne's avatar Michael Pyne

m3u: Add M3U tracks to playlist in the order provided in the file.

Turns out the return value of createItem was useful, who knew?

parent f23803e7
Pipeline #4569 passed with stage
in 7 minutes and 43 seconds
......@@ -1415,6 +1415,8 @@ void Playlist::loadFile(const QString &fileName, const QFileInfo &fileInfo)
m_disableColumnWidthUpdates = true;
m_blockDataChanged = true;
PlaylistItem *after = nullptr;
while(!stream.atEnd()) {
QString itemName = stream.readLine().trimmed();
......@@ -1426,7 +1428,7 @@ void Playlist::loadFile(const QString &fileName, const QFileInfo &fileInfo)
if(item.exists() && item.isFile() && item.isReadable() &&
(void) createItem(FileHandle(item));
after = createItem(FileHandle(item), after);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment