From ffa5879a0f776994cfd15181832240ac3080b41c Mon Sep 17 00:00:00 2001 From: DaveTBlake Date: Sat, 26 Oct 2019 13:55:11 +0100 Subject: [PATCH] Fix wrong sort order list for music playlists node --- xbmc/music/GUIViewStateMusic.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xbmc/music/GUIViewStateMusic.cpp b/xbmc/music/GUIViewStateMusic.cpp index 6a93900be906b..68e367af56f2f 100644 --- a/xbmc/music/GUIViewStateMusic.cpp +++ b/xbmc/music/GUIViewStateMusic.cpp @@ -461,6 +461,12 @@ CGUIViewStateWindowMusicNav::CGUIViewStateWindowMusicNav(const CFileItemList& it SetSortOrder(SortOrderNone); } + else if (items.GetPath() == "special://musicplaylists/") + { // playlists list sorts by label only, ignoring folders + AddSortMethod(SortByLabel, SortAttributeIgnoreFolders, 551, + LABEL_MASKS("%F", "%D", "%L", "")); // Filename, Duration | Foldername, empty + SetSortMethod(SortByLabel); + } else { if (items.IsVideoDb() && items.Size() > (settings->GetBool(CSettings::SETTING_FILELISTS_SHOWPARENTDIRITEMS)?1:0))