mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
(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:
@@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user