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 );
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;