Ignore:
Timestamp:
Nov 28, 2009, 5:51:47 PM (13 years ago)
Author:
livings124
Message:

display an error for invalid magnet links

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9615 r9616  
    943943    if (!(torrent = [[Torrent alloc] initWithMagnetAddress: address location: nil lib: fLib]))
    944944    {
    945         #warning should we do something here?
     945        NSRunAlertPanel(NSLocalizedString(@"Adding magnetized transfer failed", "Magnet link failed -> title"),
     946            [NSString stringWithFormat: NSLocalizedString(@"There was an error when adding the magnet link \"%@\"."
     947            " The transfer will not occur.", "Magnet link failed -> message"), address],
     948            NSLocalizedString(@"OK", "Magnet link failed -> button"), nil, nil);
    946949        return;
    947950    }
    948951   
    949952    #warning show add window perhaps?
    950    
    951953   
    952954    //change the location if the group calls for it (this has to wait until after the torrent is created)
     
    957959    }
    958960   
    959     #warning should we do this?
    960961    [torrent setWaitToStart: [fDefaults boolForKey: @"AutoStartDownload"]];
    961962   
Note: See TracChangeset for help on using the changeset viewer.