Changeset 1053 for trunk/macosx


Ignore:
Timestamp:
Nov 4, 2006, 8:32:29 AM (15 years ago)
Author:
livings124
Message:

update inspector when torrent location changes

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r1050 r1053  
    967967{
    968968    Torrent * torrent = [notification object];
    969 
     969   
     970    [fInfoController updateInfoSettings];
     971   
    970972    [self applyFilter: nil];
    971973    [self checkToStartWaiting: torrent];
    972 
     974   
    973975    if ([fDefaults boolForKey: @"PlayDownloadSound"])
    974976    {
     
    977979            [sound play];
    978980    }
    979 
     981   
    980982    [GrowlApplicationBridge notifyWithTitle: NSLocalizedString(@"Download Complete", "Growl notification title")
    981983        description: [torrent name]
    982984        notificationName: GROWL_DOWNLOAD_COMPLETE iconData: nil priority: 0 isSticky: NO clickContext: nil];
    983 
     985   
    984986    if (![fWindow isKeyWindow])
    985987        fCompleted++;
  • trunk/macosx/InfoWindowController.m

    r1034 r1053  
    212212        [fTorrentLocationField setStringValue: [torrent torrentLocationString]];
    213213        [fTorrentLocationField setToolTip: [torrent torrentLocation]];
    214         [fDataLocationField setStringValue: [[torrent dataLocation] stringByAbbreviatingWithTildeInPath]];
    215         [fDataLocationField setToolTip: [torrent dataLocation]];
     214       
    216215        [fDateStartedField setObjectValue: [torrent date]];
    217216       
     
    329328    int numberSelected = [fTorrents count];
    330329
    331     //set ratio settings
    332330    if (numberSelected > 0)
    333331    {
     332        Torrent * torrent;
     333       
     334        if (numberSelected == 1)
     335        {
     336            torrent = [fTorrents objectAtIndex: 0];
     337            [fDataLocationField setStringValue: [[torrent dataLocation] stringByAbbreviatingWithTildeInPath]];
     338            [fDataLocationField setToolTip: [torrent dataLocation]];
     339        }
     340       
     341        //set ratio settings
    334342        NSEnumerator * enumerator = [fTorrents objectEnumerator];
    335         Torrent * torrent = [enumerator nextObject]; //first torrent
     343        torrent = [enumerator nextObject]; //first torrent
    336344       
    337345        int ratioSetting = [torrent stopRatioSetting];
     
    519527}
    520528
    521 //only called on >= 10.4
    522529- (NSString *) tableView: (NSTableView *) tableView toolTipForCell: (NSCell *) cell
    523530        rect: (NSRectPointer) rect tableColumn: (NSTableColumn *) column
Note: See TracChangeset for help on using the changeset viewer.