sync and commit FS#4954 - return any results found when aborting a playlist search

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14179 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-08-04 09:36:47 +00:00
parent 721c897ad9
commit 88882a83d6

View file

@ -756,7 +756,11 @@ bool search_playlist(void)
#endif #endif
); );
if (action_userabort(TIMEOUT_NOBLOCK)) if (action_userabort(TIMEOUT_NOBLOCK))
return ret; {
if (!found_indicies_count)
return ret;
break;
}
playlist_get_track_info(viewer.playlist,i,&track); playlist_get_track_info(viewer.playlist,i,&track);
if (strcasestr(track.filename,search_str)) if (strcasestr(track.filename,search_str))
{ {