From ddc7120ac09d8760edf31026bd225785583525a7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 19 Nov 2008 00:06:12 +0100 Subject: screen_song: check CMD_VIEW only if song screen is enabled --- src/screen_play.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/screen_play.c') 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)) { -- cgit v1.2.3