From b75aa8df9fc59ff3cf7e38ca85cbb4c4db52695e Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 14 May 2008 18:09:51 +0000 Subject: [PATCH] dragging directly onto group row won't change queue order --- macosx/Controller.m | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index c55a33b5b..91d4037b6 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -2618,17 +2618,11 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi index = [[group objectForKey: @"Torrents"] indexOfObject: item] + 1; item = group; } - else - { - if (index == NSOutlineViewDropOnItemIndex) - index = [[item objectForKey: @"Torrents"] count]; - } } else { if ([item isKindOfClass: [Torrent class]]) item = [fTableView parentForItem: item]; - index = NSOutlineViewDropOnItemIndex; } } @@ -2685,7 +2679,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi } //reorder queue order - if ([[fDefaults stringForKey: @"Sort"] isEqualToString: SORT_ORDER]) + if (newRow != NSOutlineViewDropOnItemIndex) { //find torrent to place under NSArray * groupTorrents = item ? [item objectForKey: @"Torrents"] : fDisplayedTorrents; -- 2.40.0