mirror of
https://github.com/transmission/transmission
synced 2025-03-10 14:13:23 +00:00
(trunk) more magnet work. fix a couple of bugs reported by rolcol: (1) crash with incomplete dir + magnet links; (2) dialog focus issue in the gtk client
This commit is contained in:
parent
e4c47db71b
commit
197cf649bf
2 changed files with 3 additions and 1 deletions
|
@ -519,7 +519,7 @@ addURLDialog( GtkWindow * parent, TrCore * core )
|
|||
GtkWidget * w;
|
||||
|
||||
w = gtk_dialog_new_with_buttons( _( "Add URL" ), parent,
|
||||
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_NO_SEPARATOR,
|
||||
GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_NO_SEPARATOR,
|
||||
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
|
||||
GTK_STOCK_ADD, GTK_RESPONSE_ACCEPT,
|
||||
NULL );
|
||||
|
|
|
@ -2726,6 +2726,8 @@ refreshCurrentDir( tr_torrent * tor )
|
|||
|
||||
if( tor->incompleteDir == NULL )
|
||||
dir = tor->downloadDir;
|
||||
else if( !tr_torrentHasMetadata( tor ) ) /* no files to find */
|
||||
dir = tor->incompleteDir;
|
||||
else if( !tr_torrentFindFile2( tor, 0, &dir, &sub ) )
|
||||
dir = tor->incompleteDir;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue