From: Mitchell Livingston Date: Wed, 14 May 2008 18:09:51 +0000 (+0000) Subject: dragging directly onto group row won't change queue order X-Git-Tag: 1.21~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b75aa8df9fc59ff3cf7e38ca85cbb4c4db52695e;p=transmission dragging directly onto group row won't change queue order --- 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;