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