fix clearing statusbar if playing is stopped

master
Andrzej Rybczak 17 years ago
parent 1a7fd6d332
commit aad83e9b6c
  1. 2
      src/status.cpp

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

Loading…
Cancel
Save