From bedf936a8d54bab5e51d5fadb3b42440ec864f61 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 2 Oct 2008 15:20:18 +0200 Subject: [PATCH] screen_artist: call artist_lw_cmd() at the end of artist_cmd() By calling artist_lw_cmd() after the big switch, we can override behaviour, and we can modify the command. --- src/screen_artist.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/screen_artist.c b/src/screen_artist.c index b15b89d..c9c6f9b 100644 --- a/src/screen_artist.c +++ b/src/screen_artist.c @@ -450,11 +450,6 @@ artist_cmd(screen_t *screen, mpdclient_t *c, command_t cmd) char *selected; int ret; - if (artist_lw_cmd(cmd)) { - artist_repaint(); - return 1; - } - switch(cmd) { case CMD_PLAY: switch (mode) { @@ -624,6 +619,11 @@ artist_cmd(screen_t *screen, mpdclient_t *c, command_t cmd) break; } + if (artist_lw_cmd(cmd)) { + artist_repaint(); + return 1; + } + return 0; } -- 2.30.2