pass ProxySongList around since it already has shared_ptr inside
This commit is contained in:
@@ -80,9 +80,9 @@ void setProperties(NC::Menu<T> &menu, const MPD::Song &s, HasSongs &screen, bool
|
||||
separate_albums = false;
|
||||
if (Config.playlist_separate_albums)
|
||||
{
|
||||
auto pl = screen.getProxySongList();
|
||||
auto pl = screen.proxySongList();
|
||||
assert(pl);
|
||||
auto next = pl->getSong(drawn_pos+1);
|
||||
auto next = pl.getSong(drawn_pos+1);
|
||||
if (next && next->getAlbum() != s.getAlbum())
|
||||
separate_albums = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user