aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen_browser.c')
-rw-r--r--src/screen_browser.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/screen_browser.c b/src/screen_browser.c
index 9ce6fedd8..bad13ea02 100644
--- a/src/screen_browser.c
+++ b/src/screen_browser.c
@@ -391,6 +391,17 @@ browser_handle_select(struct screen_browser *browser, mpdclient_t *c)
return browser_select_entry(c, entry, TRUE);
}
+int
+browser_handle_add(struct screen_browser *browser, mpdclient_t *c)
+{
+ struct filelist_entry *entry = browser_get_selected(browser);
+
+ if (entry == NULL || entry->entity == NULL)
+ return -1;
+
+ return browser_select_entry(c, entry, FALSE);
+}
+
void
browser_handle_select_all(struct screen_browser *browser, mpdclient_t *c)
{