Code

Merge branch 'master' of git://git.musicpd.org/avuton/ncmpc
[ncmpc.git] / src / screen_queue.c
index 1ee8c001dab4b43db898d40ffc43bb82bc2cfd2b..c8fad68d2c7e52e2cf126a7aae6312ac094d7b51 100644 (file)
@@ -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)) ||