]> granicus.if.org Git - transmission/commitdiff
(trunk) more magnet work. fix a couple of bugs reported by rolcol: (1) crash with...
authorCharles Kerr <charles@transmissionbt.com>
Wed, 25 Nov 2009 08:22:57 +0000 (08:22 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Wed, 25 Nov 2009 08:22:57 +0000 (08:22 +0000)
gtk/add-dialog.c
libtransmission/torrent.c

index f31cc888f6c8939499f2e495b0ca3e85e7268484..24beea347cfd2ffeda68d2001ff577f59e3c0648 100644 (file)
@@ -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 );
index 221e3403dd9934d85b64240b4563b46d943650f4..1a6f4b7a5f413a1c099ff2dbfa55b4cbaf7029d8 100644 (file)
@@ -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;