fix clearing statusbar if playing is stopped

This commit is contained in:
Andrzej Rybczak
2009-03-13 15:24:12 +01:00
parent 1a7fd6d332
commit aad83e9b6c

View File

@@ -361,7 +361,7 @@ void NcmpcppStatusChanged(Connection *Mpd, StatusChanges changed, void *)
}
if (changed.ElapsedTime)
{
if (!np.Empty())
if (!np.Empty() && !player_state.empty())
{
int elapsed = Mpd->GetElapsedTime();