From 2184fb7c7393ef2d8e3e3ccbc020d7d0025703e4 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 7 Apr 2013 17:28:10 +0200 Subject: get rid of global mpd status object --- src/display.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/display.cpp') diff --git a/src/display.cpp b/src/display.cpp index c3c9c1b0..cfa1f550 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -97,8 +97,8 @@ void setProperties(NC::Menu &menu, const MPD::Song &s, const ProxySongList &p discard_colors = Config.discard_colors_if_item_is_selected && is_selected; int song_pos = menu.isFiltered() ? s.getPosition() : drawn_pos; - is_now_playing = MpdStatus.playerState() != MPD::psStop && myPlaylist->isActiveWindow(menu) - && song_pos == MpdStatus.currentSongPosition(); + is_now_playing = Status::State::player() != MPD::psStop && myPlaylist->isActiveWindow(menu) + && song_pos == myPlaylist->currentSongPosition(); if (is_now_playing) menu << Config.now_playing_prefix; } -- cgit v1.2.3