aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/screen.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index 94b3dc860..4eac178b7 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -709,7 +709,11 @@ screen_cmd(mpd_client_t *c, command_t cmd)
switch(cmd)
{
case CMD_PLAY:
- mpd_sendPlayCommand(c->connection, play_get_selected());
+ if( screen->mode == SCREEN_PLAY_WINDOW )
+ n = play_get_selected();
+ else
+ n = -1;
+ mpd_sendPlayCommand(c->connection, n);
mpd_finishCommand(c->connection);
break;
case CMD_PAUSE: