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;
}
}
}
//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;