From 257f67c732b37d0c8594fa974dc42a27d9faa07c Mon Sep 17 00:00:00 2001 From: Adrian Kowalski Date: Thu, 5 Nov 2015 09:58:01 +0100 Subject: [PATCH] sort playlist: add 'album artist' to the sort options --- NEWS | 3 +++ src/sort_playlist.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/NEWS b/NEWS index b1b8ddf2..9fc8e14f 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +ncmpcpp-0.7_beta2 (????-??-??) +* Playlist sorting dialog now contains 'Album artist' option. + ncmpcpp-0.7_beta1 (2015-11-04) * Visualizer has now support for multiple colors (visualizer_color configuration variable takes the list of colors to be used). diff --git a/src/sort_playlist.cpp b/src/sort_playlist.cpp index 69851b9a..b9d73a53 100644 --- a/src/sort_playlist.cpp +++ b/src/sort_playlist.cpp @@ -50,6 +50,9 @@ SortPlaylistDialog::SortPlaylistDialog() w.addItem(Entry(std::make_pair("Artist", &MPD::Song::getArtist), std::bind(&Self::moveSortOrderHint, this) )); + w.addItem(Entry(std::make_pair("Album artist", &MPD::Song::getAlbumArtist), + std::bind(&Self::moveSortOrderHint, this) + )); w.addItem(Entry(std::make_pair("Album", &MPD::Song::getAlbum), std::bind(&Self::moveSortOrderHint, this) ));