From a2a53982390c089823142ccc6b1dceb9282fcde5 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Wed, 10 Jun 2009 18:32:55 +0200 Subject: [PATCH] always unlock item list update after clearing the playlist --- src/ncmpcpp.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ncmpcpp.cpp b/src/ncmpcpp.cpp index 9147eb95..77f69849 100644 --- a/src/ncmpcpp.cpp +++ b/src/ncmpcpp.cpp @@ -1662,6 +1662,10 @@ int main(int argc, char *argv[]) } ShowMessage("Cleared playlist!"); } + // if playlist is cleared, items list have to be updated, but this + // can be blocked if new song was added to playlist less than one + // second ago, so we need to assume it's unlocked. + BlockItemListUpdate = 0; UpdateStatusImmediately = 1; } else if (Keypressed(input, Key.SortPlaylist) && myScreen == myPlaylist)