From b0c6f67a1d0c549ca904f577c9b3f2080228d292 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Dec 2009 21:06:31 +0100 Subject: [PATCH] screen_queue: always update the list size This fixes an assertion failure. --- NEWS | 1 + src/screen_queue.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/NEWS b/NEWS index c1c8342..31f5e17 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,5 @@ ncmpc 0.17 - not yet released +* screen_queue: always update the list size ncmpc 0.16 - (12/25/2009) diff --git a/src/screen_queue.c b/src/screen_queue.c index fbcc180..1ca3d62 100644 --- a/src/screen_queue.c +++ b/src/screen_queue.c @@ -550,6 +550,10 @@ screen_queue_update(struct mpdclient *c) { if (c->events & MPD_IDLE_QUEUE) screen_queue_restore_selection(); + else + /* the queue size may have changed, even if we havn't + revceived the QUEUE idle event yet */ + list_window_set_length(lw, playlist_length(playlist)); if (((c->events & MPD_IDLE_PLAYER) != 0 && screen_queue_song_change(c->status)) || -- 2.30.2