From: Max Kellermann Date: Wed, 30 Dec 2009 20:06:31 +0000 (+0100) Subject: screen_queue: always update the list size X-Git-Tag: release-0.16.1~5 X-Git-Url: https://git.tokkee.org/?p=ncmpc.git;a=commitdiff_plain;h=b0c6f67a1d0c549ca904f577c9b3f2080228d292 screen_queue: always update the list size This fixes an assertion failure. --- 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)) ||