diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2012-09-02 20:51:20 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2012-09-02 20:51:20 +0200 |
commit | 5e8d1673e014e5d9af4c5538ae938d7c414a2ed3 (patch) | |
tree | 389d567eaa8a5e60a45b18048c6de1b5547ae914 /src/display.cpp | |
parent | 0cfe5d8f01cae20ea0751f28bf16c8a6ff818fc2 (diff) |
implement ProxySongList for handling general operations on lists
Diffstat (limited to 'src/display.cpp')
-rw-r--r-- | src/display.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/display.cpp b/src/display.cpp index f60fe8a4..e2329a9f 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -79,7 +79,9 @@ void setProperties(NC::Menu<T> &menu, const MPD::Song &s, HasSongs &screen, bool separate_albums = false; if (Config.playlist_separate_albums) { - auto next = screen.getSong(menu.DrawnPosition()+1); + auto pl = screen.getProxySongList(); + assert(pl); + auto next = pl->getSong(menu.DrawnPosition()+1); if (next && next->getAlbum() != s.getAlbum()) separate_albums = true; } |