Changeset 4270
- Timestamp:
- Dec 21, 2007, 10:38:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/torrent.c
r4268 r4270 452 452 tr_ctor * ctor = tr_ctorNew( h ); 453 453 tr_ctorSetMetainfoFromFile( ctor, path ); 454 tr_ctorSetDestination( ctor, TR_FORCE, destination ); 454 if( destination && *destination ) 455 tr_ctorSetDestination( ctor, TR_FORCE, destination ); 455 456 err = tr_torrentParseFromCtor( h, ctor, setmeInfo ); 456 457 tr_ctorFree( ctor ); … … 469 470 tr_ctor * ctor = tr_ctorNew( h ); 470 471 tr_ctorSetMetainfoFromFile( ctor, path ); 471 tr_ctorSetDestination( ctor, TR_FORCE, destination ); 472 if( destination && *destination ) 473 tr_ctorSetDestination( ctor, TR_FORCE, destination ); 472 474 tr_ctorSetPaused( ctor, TR_FORCE, isPaused ); 473 475 tor = tr_torrentNew( h, ctor, setmeError ); … … 486 488 tr_ctor * ctor = tr_ctorNew( h ); 487 489 tr_ctorSetMetainfoFromHash( ctor, hashStr ); 488 tr_ctorSetDestination( ctor, TR_FORCE, destination ); 490 if( destination && *destination ) 491 tr_ctorSetDestination( ctor, TR_FORCE, destination ); 489 492 err = tr_torrentParseFromCtor( h, ctor, setmeInfo ); 490 493 tr_ctorFree( ctor ); … … 503 506 tr_ctor * ctor = tr_ctorNew( h ); 504 507 tr_ctorSetMetainfoFromHash( ctor, hashStr ); 505 tr_ctorSetDestination( ctor, TR_FORCE, destination ); 508 if( destination && *destination ) 509 tr_ctorSetDestination( ctor, TR_FORCE, destination ); 506 510 tr_ctorSetPaused( ctor, TR_FORCE, isPaused ); 507 511 tor = tr_torrentNew( h, ctor, setmeError ); … … 522 526 tr_ctor * ctor = tr_ctorNew( h ); 523 527 tr_ctorSetMetainfo( ctor, metainfo, len ); 524 tr_ctorSetDestination( ctor, TR_FORCE, destination ); 528 if( destination && *destination ) 529 tr_ctorSetDestination( ctor, TR_FORCE, destination ); 525 530 tr_ctorSetPaused( ctor, TR_FORCE, isPaused ); 526 531 tor = tr_torrentNew( h, ctor, setmeError );
Note: See TracChangeset
for help on using the changeset viewer.