Changeset 6254


Ignore:
Timestamp:
Jun 26, 2008, 3:35:20 AM (14 years ago)
Author:
livings124
Message:

if a group row is selected and the content changes, refresh the inspector

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.h

    r6244 r6254  
    179179
    180180- (void) showInfo: (id) sender;
     181- (void) resetInfo;
    181182- (void) setInfoTab: (id) sender;
    182183
  • trunk/macosx/Controller.m

    r6244 r6254  
    14481448}
    14491449
     1450- (void) resetInfo
     1451{
     1452    [fInfoController setInfoForTorrents: [fTableView selectedTorrents]];
     1453    [[QuickLookController quickLook] updateQuickLook];
     1454}
     1455
    14501456- (void) setInfoTab: (id) sender
    14511457{
     
    20572063    [self sortTorrentsIgnoreSelected];
    20582064    [fTableView selectValues: selectedValues];
     2065    [self resetInfo]; //if group is already selected, but the torrents in it change
    20592066   
    20602067    //reset expanded/collapsed rows
     
    27762783        //set selected rows
    27772784        [fTableView selectValues: selectedValues];
     2785        [self resetInfo]; //if group is already selected, but the torrents in it change
    27782786    }
    27792787   
     
    27832791- (void) torrentTableViewSelectionDidChange: (NSNotification *) notification
    27842792{
    2785     [fInfoController setInfoForTorrents: [fTableView selectedTorrents]];
    2786     [[QuickLookController quickLook] updateQuickLook];
     2793    [self resetInfo];
    27872794}
    27882795
Note: See TracChangeset for help on using the changeset viewer.