diff options
author | Max Kellermann <max@duempel.org> | 2008-11-19 00:06:12 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-19 00:06:12 +0100 |
commit | ddc7120ac09d8760edf31026bd225785583525a7 (patch) | |
tree | 0833f3bc31e9a799c74fe6a941b8942509196d67 /src/screen_play.c | |
parent | f3849aa2b3eb49ca6a903e6627f97540c1a383f1 (diff) | |
download | mpd-ddc7120ac09d8760edf31026bd225785583525a7.tar.gz mpd-ddc7120ac09d8760edf31026bd225785583525a7.tar.xz mpd-ddc7120ac09d8760edf31026bd225785583525a7.zip |
screen_song: check CMD_VIEW only if song screen is enabled
Diffstat (limited to '')
-rw-r--r-- | src/screen_play.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/screen_play.c b/src/screen_play.c index 13b5e742b..6cc7277ab 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -554,6 +554,7 @@ play_cmd(mpdclient_t *c, command_t cmd) return handle_mouse_event(c); #endif +#ifdef ENABLE_SONG_SCREEN case CMD_VIEW: if (lw->selected < playlist_length(&c->playlist)) { screen_song_switch(c, playlist_get(&c->playlist, lw->selected)); @@ -561,6 +562,7 @@ play_cmd(mpdclient_t *c, command_t cmd) } break; +#endif case CMD_LOCATE: if (lw->selected < playlist_length(&c->playlist)) { |