From ad7a50490ac2d132e1afa0c5aa68e238c542510c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 3 Oct 2009 20:13:13 +0200 Subject: [PATCH] screen_search: check for SEARCH_URI in search_simple_query() Call mpd_search_add_uri_constraint() in this case. --- src/screen_search.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/screen_search.c b/src/screen_search.c index e41e3b0..2dd911d 100644 --- a/src/screen_search.c +++ b/src/screen_search.c @@ -186,6 +186,13 @@ search_simple_query(struct mpd_connection *connection, bool exact_match, if (list != NULL) filelist_sort_all(list, compare_filelistentry_format); + } else if (table == SEARCH_URI) { + mpd_search_db_songs(connection, exact_match); + mpd_search_add_uri_constraint(connection, MPD_OPERATOR_DEFAULT, + filter_utf8); + mpd_search_commit(connection); + + list = filelist_new_recv(connection); } else { mpd_search_db_songs(connection, exact_match); mpd_search_add_tag_constraint(connection, MPD_OPERATOR_DEFAULT, -- 2.30.2