diff options
author | waker <wakeroid@gmail.com> | 2013-08-21 20:26:46 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2013-08-21 20:26:46 +0200 |
commit | e7b570a801019133796966c798157741f264fe8d (patch) | |
tree | 5e72e2854002efff958e4086d706146e2c6cf597 /plugins/hotkeys | |
parent | 5127b201b8a9dc44befa8d25e41042a2e29c1bab (diff) |
hotkeys: fixed playqueue handlers in tab menu
Diffstat (limited to 'plugins/hotkeys')
-rw-r--r-- | plugins/hotkeys/actionhandlers.c | 4 |
1 files 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); |