Only sort playlists in folders view, and place these after tracks.
Closes #1258
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
-----
|
||||
1. Update some translations.
|
||||
2. Set Smart rules 'files added in the last days' limit to 10*365
|
||||
3. Only sort playlists in folders view, and place these after tracks.
|
||||
|
||||
2.3.0
|
||||
-----
|
||||
|
||||
@@ -743,7 +743,18 @@ void MPDParseUtils::parseDirItems(const QByteArray &data, const QString &mpdDir,
|
||||
}
|
||||
}
|
||||
if (Loc_Browse==loc) {
|
||||
qSort(songs);
|
||||
QList<Song> sngs;
|
||||
QList<Song> playlists;
|
||||
for (const auto &s: songs) {
|
||||
if (Song::Playlist==s.type) {
|
||||
playlists.append(s);
|
||||
} else {
|
||||
sngs.append(s);
|
||||
}
|
||||
}
|
||||
qSort(playlists);
|
||||
songs=sngs;
|
||||
songs+=playlists;
|
||||
}
|
||||
songList+=songs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user