Ignore:
Timestamp:
Jun 7, 2011, 11:40:10 PM (10 years ago)
Author:
livings124
Message:

When hiding the filter bar, make the table view the first responder right away.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r12348 r12492  
    24742474- (id) outlineView: (NSOutlineView *) outlineView objectValueForTableColumn: (NSTableColumn *) tableColumn byItem: (id) item
    24752475{
    2476     if ([item isKindOfClass: [Torrent class]])
     2476    if ([item isKindOfClass: [Torrent class]]) {
     2477        if (tableColumn)
     2478            return nil;
    24772479        return [item hashString];
     2480    }
    24782481    else
    24792482    {
     
    28922895        }
    28932896    }
    2894 
     2897   
    28952898    [self updateUI];
    28962899   
     
    29752978        [[fFilterBar view] setFrameOrigin: NSMakePoint(0.0, originY)];
    29762979    }
     2980    else
     2981        [fWindow makeFirstResponder: fTableView];
    29772982   
    29782983    CGFloat heightChange = NSHeight([[fFilterBar view] frame]);
     
    30193024        [fFilterBar release];
    30203025        fFilterBar = nil;
    3021         [fWindow makeFirstResponder: fTableView];
    30223026    }
    30233027}
Note: See TracChangeset for help on using the changeset viewer.