]> granicus.if.org Git - transmission/commitdiff
#4479 'magnet links are not included in filter results' -- fixed.
authorJordan Lee <jordan@transmissionbt.com>
Wed, 14 Sep 2011 17:22:54 +0000 (17:22 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Wed, 14 Sep 2011 17:22:54 +0000 (17:22 +0000)
gtk/filter.c

index d4c489b415aae567ae0e3f6f591e5dccb6d4f96b..15fbe12a33a95b3cc55ebbf7f163abf6d08d3aa7 100644 (file)
@@ -839,6 +839,14 @@ testText( const tr_torrent * tor, const char * key )
         tr_file_index_t i;
         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 )
         {
             char * pch = g_utf8_casefold( inf->files[i].name, -1 );