summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-01 15:53:54 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-01 15:53:54 +0100
commit4a0a1c8c9c4033263b85722f684392e9a45bd65f (patch)
tree29b93f69346587850c6a861b83fd2fe1739bbefd /playlist.c
parent7a67e56295496b431f4fceaa461f501975be9f55 (diff)
playlist/search selection fixups
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/playlist.c b/playlist.c
index 70b451aa..857bffff 100644
--- a/playlist.c
+++ b/playlist.c
@@ -1780,6 +1780,7 @@ pl_process_search (const char *text) {
int search_count = 0;
if (*text) {
for (playItem_t *it = playlist_head[PL_MAIN]; it; it = it->next[PL_MAIN]) {
+ it->selected = 0;
for (metaInfo_t *m = it->meta; m; m = m->next) {
// if (strcasestr (m->value, text)) {
if (utfcasestr (m->value, text)) {
@@ -1792,6 +1793,7 @@ pl_process_search (const char *text) {
else {
playlist_head[PL_SEARCH] = playlist_tail[PL_SEARCH] = it;
}
+ it->selected = 1;
search_count++;
break;
}