Code

screen_queue: update list_window length after mouse delete
authorMax Kellermann <max@duempel.org>
Sat, 17 Oct 2009 22:54:14 +0000 (00:54 +0200)
committerMax Kellermann <max@duempel.org>
Sat, 17 Oct 2009 22:54:14 +0000 (00:54 +0200)
Fix an assertion failure.

src/screen_queue.c

index 7275734d08c70ce2ebe05555a855303c489098f3..898011d85b338ef5d4aafc5081703bdebe42464f 100644 (file)
@@ -621,6 +621,8 @@ handle_mouse_event(struct mpdclient *c)
                /* delete */
                if (selected == lw->selected)
                        mpdclient_cmd_delete(c, lw->selected);
+
+               list_window_set_length(lw, playlist_length(playlist));
        }
 
        list_window_set_cursor(lw, selected);