(trunk gtk) fix r9625 oops on adding torrents by their raw 40 character hex hashcode from the commandline in the GTK+ client

This commit is contained in:
Charles Kerr
2009-11-29 08:29:57 +00:00
parent a38fb59c6f
commit 66880acfc7
2 changed files with 9 additions and 4 deletions

View File

@@ -373,10 +373,11 @@ checkfilenames( int argc, char **argv )
if( g_file_test( filename, G_FILE_TEST_EXISTS ) )
ret = g_slist_prepend( ret, filename );
else if( gtr_is_hex_hashcode( filename ) )
ret = g_slist_prepend( ret, filename );
else
else {
if( gtr_is_hex_hashcode( argv[i] ) )
ret = g_slist_prepend( ret, g_strdup( argv[i] ) );
g_free( filename );
}
}
}