Reordering only if nothing is filtered.

Tiny spacing tweak for hiding search field.
This commit is contained in:
Mitchell Livingston 2006-07-17 03:29:29 +00:00
parent eacd1583d4
commit d30dd87352
1 changed files with 2 additions and 2 deletions

View File

@ -1383,7 +1383,7 @@ static void sleepCallBack(void * controller, io_service_t y,
toPasteboard: (NSPasteboard *) pasteboard
{
//only allow reordering of rows if sorting by order with no filter
if ([fSortType isEqualToString: @"Order"] && [fFilterType isEqualToString: @"None"])
if ([fSortType isEqualToString: @"Order"] && [fTorrents count] == [fFilteredTorrents count])
{
[pasteboard declareTypes: [NSArray arrayWithObject: TORRENT_TABLE_VIEW_DATA_TYPE] owner: self];
[pasteboard setData: [NSKeyedArchiver archivedDataWithRootObject: indexes]
@ -2044,7 +2044,7 @@ static void sleepCallBack(void * controller, io_service_t y,
{
//hide search filter if it overlaps filter buttons
NSRect buttonFrame = [fPauseFilterButton frame];
BOOL overlap = buttonFrame.origin.x + buttonFrame.size.width > [fSearchFilterField frame].origin.x;
BOOL overlap = buttonFrame.origin.x + buttonFrame.size.width + 2.0 > [fSearchFilterField frame].origin.x;
if (![fSearchFilterField isHidden])
{