1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

#4479 'magnet links are not included in filter results' -- fixed.

This commit is contained in:
Jordan Lee 2011-09-14 17:22:54 +00:00
parent 779316aa37
commit cc237aa713

View file

@ -839,6 +839,14 @@ testText( const tr_torrent * tor, const char * key )
tr_file_index_t i; tr_file_index_t i;
const tr_info * inf = tr_torrentInfo( tor ); const tr_info * inf = tr_torrentInfo( tor );
/* test the torrent name... */
{
char * pch = g_utf8_casefold( tr_torrentName( tor ), -1 );
ret = !key || strstr( pch, key ) != NULL;
g_free( pch );
}
/* test the files... */
for( i=0; i<inf->fileCount && !ret; ++i ) for( i=0; i<inf->fileCount && !ret; ++i )
{ {
char * pch = g_utf8_casefold( inf->files[i].name, -1 ); char * pch = g_utf8_casefold( inf->files[i].name, -1 );