1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 18:18:10 +00:00

dragging directly onto group row won't change queue order

This commit is contained in:
Mitchell Livingston 2008-05-14 18:09:51 +00:00
parent 5182187b8f
commit b75aa8df9f

View file

@ -2618,17 +2618,11 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
index = [[group objectForKey: @"Torrents"] indexOfObject: item] + 1; index = [[group objectForKey: @"Torrents"] indexOfObject: item] + 1;
item = group; item = group;
} }
else
{
if (index == NSOutlineViewDropOnItemIndex)
index = [[item objectForKey: @"Torrents"] count];
}
} }
else else
{ {
if ([item isKindOfClass: [Torrent class]]) if ([item isKindOfClass: [Torrent class]])
item = [fTableView parentForItem: item]; item = [fTableView parentForItem: item];
index = NSOutlineViewDropOnItemIndex; index = NSOutlineViewDropOnItemIndex;
} }
} }
@ -2685,7 +2679,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
} }
//reorder queue order //reorder queue order
if ([[fDefaults stringForKey: @"Sort"] isEqualToString: SORT_ORDER]) if (newRow != NSOutlineViewDropOnItemIndex)
{ {
//find torrent to place under //find torrent to place under
NSArray * groupTorrents = item ? [item objectForKey: @"Torrents"] : fDisplayedTorrents; NSArray * groupTorrents = item ? [item objectForKey: @"Torrents"] : fDisplayedTorrents;