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:
parent
5182187b8f
commit
b75aa8df9f
1 changed files with 1 additions and 7 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue