mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
(trunk gtk) #3930: Add drag-and-drop support for info hashes.
The "Add URL" dialog accepts URLs, magnet links, and infohashes, but only copyies urls and magnet links from the clipboard. Patch by cantabile.
This commit is contained in:
parent
4d529db419
commit
d6518b93b8
1 changed files with 2 additions and 1 deletions
|
@ -930,7 +930,8 @@ gtr_paste_clipboard_url_into_entry( GtkWidget * e )
|
|||
|
||||
for( i=0; i<G_N_ELEMENTS(text); ++i ) {
|
||||
char * s = text[i];
|
||||
if( s && ( gtr_is_supported_url( s ) || gtr_is_magnet_link( s ) ) ) {
|
||||
if( s && ( gtr_is_supported_url( s ) || gtr_is_magnet_link( s )
|
||||
|| gtr_is_hex_hashcode( s ) ) ) {
|
||||
gtk_entry_set_text( GTK_ENTRY( e ), s );
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue