diff options
author | 2009-12-01 15:53:54 +0100 | |
---|---|---|
committer | 2009-12-01 15:53:54 +0100 | |
commit | 4a0a1c8c9c4033263b85722f684392e9a45bd65f (patch) | |
tree | 29b93f69346587850c6a861b83fd2fe1739bbefd /playlist.c | |
parent | 7a67e56295496b431f4fceaa461f501975be9f55 (diff) |
playlist/search selection fixups
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |