Changeset 6012


Ignore:
Timestamp:
Jun 3, 2008, 4:28:09 PM (14 years ago)
Author:
livings124
Message:

only update the options window when the updated torrent is already selected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r6011 r6012  
    16831683    [self updateTorrentsInQueue];
    16841684   
    1685     #warning perhaps check if torrent is selected in inspector
    1686     [fInfoController updateInfoStats];
    1687     [fInfoController updateOptions];
     1685    if ([[fTableView selectedTorrents] containsObject: torrent])
     1686    {
     1687        [fInfoController updateInfoStats];
     1688        [fInfoController updateOptions];
     1689    }
    16881690   
    16891691    if (!fSoundPlaying && [fDefaults boolForKey: @"PlaySeedingSound"])
     
    42444246{
    42454247    [torrent update];
     4248   
     4249    if ([[fTableView selectedTorrents] containsObject: torrent])
     4250    {
     4251        [fInfoController updateInfoStats];
     4252        [fInfoController updateOptions];
     4253    }
     4254   
    42464255    [torrent release];
    4247    
    4248     #warning check if torrent is selected?
    4249     [fInfoController updateInfoStats];
    4250     [fInfoController updateOptions];
    42514256}
    42524257
Note: See TracChangeset for help on using the changeset viewer.