Ignore:
Timestamp:
Nov 14, 2006, 5:27:43 AM (15 years ago)
Author:
livings124
Message:

When loading from url, if set to download at the torrent location ask the user for a location instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r1088 r1089  
    526526    NSString * path = [[fPendingTorrentDownloads objectForKey: [[download request] URL]] objectForKey: @"Path"];
    527527   
    528     [self openFiles: [NSArray arrayWithObject: path] ignoreDownloadFolder: NO forceDeleteTorrent: YES];
     528    [self openFiles: [NSArray arrayWithObject: path] ignoreDownloadFolder:
     529        ![[fDefaults stringForKey: @"DownloadChoice"] isEqualToString: @"Constant"] forceDeleteTorrent: YES];
    529530   
    530531    [fPendingTorrentDownloads removeObjectForKey: [[download request] URL]];
     
    17751776        [filesToOpen release];
    17761777    }
    1777     else if ([[pasteboard types] containsObject: NSURLPboardType])
     1778   
     1779    if ([[pasteboard types] containsObject: NSURLPboardType])
    17781780    {
    17791781        NSURL * url;
    1780         if ((url = [NSURL URLFromPasteboard:pasteboard]))
     1782        if ((url = [NSURL URLFromPasteboard: pasteboard]))
    17811783            [self openURL: url];
    17821784    }
    1783     else if ([[pasteboard types] containsObject: TORRENT_TABLE_VIEW_DATA_TYPE])
     1785   
     1786    if ([[pasteboard types] containsObject: TORRENT_TABLE_VIEW_DATA_TYPE])
    17841787    {
    17851788        //remember selected rows if needed
     
    18331836        }
    18341837    }
    1835     else;
    18361838   
    18371839    return YES;
Note: See TracChangeset for help on using the changeset viewer.