diff options
author | Max Kellermann <max@duempel.org> | 2008-10-02 15:20:18 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-02 15:20:18 +0200 |
commit | bedf936a8d54bab5e51d5fadb3b42440ec864f61 (patch) | |
tree | 4a6952350cecc9642e219234a4d60108fbfafabd /src/screen_artist.c | |
parent | cc15a6261e9564edc4fb998f6510f29aaa6f5400 (diff) | |
download | mpd-bedf936a8d54bab5e51d5fadb3b42440ec864f61.tar.gz mpd-bedf936a8d54bab5e51d5fadb3b42440ec864f61.tar.xz mpd-bedf936a8d54bab5e51d5fadb3b42440ec864f61.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/screen_artist.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/screen_artist.c b/src/screen_artist.c index b15b89dbb..c9c6f9b01 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; } |