From e7b570a801019133796966c798157741f264fe8d Mon Sep 17 00:00:00 2001 From: waker Date: Wed, 21 Aug 2013 20:26:46 +0200 Subject: hotkeys: fixed playqueue handlers in tab menu --- plugins/hotkeys/actionhandlers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/hotkeys/actionhandlers.c b/plugins/hotkeys/actionhandlers.c index b28c9c39..5f42a731 100644 --- a/plugins/hotkeys/actionhandlers.c +++ b/plugins/hotkeys/actionhandlers.c @@ -281,7 +281,7 @@ int action_add_to_playqueue_handler (DB_plugin_action_t *act, int ctx) { DB_playItem_t *it = deadbeef->pl_get_first (PL_MAIN); while (it) { - if (deadbeef->pl_is_selected (it)) { + if (ctx == DDB_ACTION_CTX_PLAYLIST || (ctx == DDB_ACTION_CTX_SELECTION && deadbeef->pl_is_selected (it))) { deadbeef->pl_playqueue_push (it); } DB_playItem_t *next = deadbeef->pl_get_next (it, PL_MAIN); @@ -296,7 +296,7 @@ int action_remove_from_playqueue_handler (DB_plugin_action_t *act, int ctx) { DB_playItem_t *it = deadbeef->pl_get_first (PL_MAIN); while (it) { - if (deadbeef->pl_is_selected (it)) { + if (ctx == DDB_ACTION_CTX_PLAYLIST || (ctx == DDB_ACTION_CTX_SELECTION && deadbeef->pl_is_selected (it))) { deadbeef->pl_playqueue_remove (it); } DB_playItem_t *next = deadbeef->pl_get_next (it, PL_MAIN); -- cgit v1.2.3