From 87caf42a009087d5a8c9f2396d8b0f55bd0f5848 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Thu, 13 Jul 2006 00:16:49 +0000 Subject: [PATCH] only allow reordering by dragging with no filter applied --- macosx/Controller.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index 938cd4a60..cdc5e76ab 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -808,8 +808,7 @@ static void sleepCallBack(void * controller, io_service_t y, if ([torrent justFinished]) { - if (![fFilterType isEqualToString: @"None"]) - [self applyFilter]; + [self applyFilter]; [self checkToStartWaiting: torrent]; //notifications @@ -1311,7 +1310,8 @@ static void sleepCallBack(void * controller, io_service_t y, - (BOOL) tableView: (NSTableView *) tableView writeRowsWithIndexes: (NSIndexSet *) indexes toPasteboard: (NSPasteboard *) pasteboard { - if ([fSortType isEqualToString: @"Order"]) + //only allow reordering of rows if sorting by order with no filter + if ([fSortType isEqualToString: @"Order"] && [fFilterType isEqualToString: @"None"]) { [pasteboard declareTypes: [NSArray arrayWithObject: TORRENT_TABLE_VIEW_DATA_TYPE] owner: self]; [pasteboard setData: [NSKeyedArchiver archivedDataWithRootObject: indexes]