Merge branch '0.6.x'
This commit is contained in:
@@ -76,7 +76,9 @@ std::string Song::getName(unsigned idx) const
|
||||
assert(m_song);
|
||||
mpd_song *s = m_song.get();
|
||||
const char *res = mpd_song_get_tag(s, MPD_TAG_NAME, idx);
|
||||
if (!res && idx > 0)
|
||||
if (res)
|
||||
return res;
|
||||
else if (idx > 0)
|
||||
return "";
|
||||
const char *uri = mpd_song_get_uri(s);
|
||||
const char *name = strrchr(uri, '/');
|
||||
|
||||
@@ -576,7 +576,7 @@ void Status::Changes::elapsedTime(bool update_elapsed)
|
||||
m_kbps = st.kbps();
|
||||
}
|
||||
|
||||
if (m_player_state == MPD::psStop)
|
||||
if (m_player_state == MPD::psUnknown || m_player_state == MPD::psStop)
|
||||
{
|
||||
if (Statusbar::isUnlocked() && Config.statusbar_visibility)
|
||||
*wFooter << NC::XY(0, 1) << NC::TermManip::ClearToEOL;
|
||||
|
||||
Reference in New Issue
Block a user