From aad83e9b6c23f9f1de6ab697daf924a6ed209724 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Fri, 13 Mar 2009 15:24:12 +0100 Subject: [PATCH] fix clearing statusbar if playing is stopped --- src/status.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/status.cpp b/src/status.cpp index ecbb9b95..b719dd5f 100644 --- a/src/status.cpp +++ b/src/status.cpp @@ -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();