Changeset 631


Ignore:
Timestamp:
Jul 17, 2006, 3:29:29 AM (16 years ago)
Author:
livings124
Message:

Reordering only if nothing is filtered.
Tiny spacing tweak for hiding search field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r629 r631  
    13841384{
    13851385    //only allow reordering of rows if sorting by order with no filter
    1386     if ([fSortType isEqualToString: @"Order"] && [fFilterType isEqualToString: @"None"])
     1386    if ([fSortType isEqualToString: @"Order"] && [fTorrents count] == [fFilteredTorrents count])
    13871387    {
    13881388        [pasteboard declareTypes: [NSArray arrayWithObject: TORRENT_TABLE_VIEW_DATA_TYPE] owner: self];
     
    20452045    //hide search filter if it overlaps filter buttons
    20462046    NSRect buttonFrame = [fPauseFilterButton frame];
    2047     BOOL overlap = buttonFrame.origin.x + buttonFrame.size.width > [fSearchFilterField frame].origin.x;
     2047    BOOL overlap = buttonFrame.origin.x + buttonFrame.size.width + 2.0 > [fSearchFilterField frame].origin.x;
    20482048   
    20492049    if (![fSearchFilterField isHidden])
Note: See TracChangeset for help on using the changeset viewer.