mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
#4701 Table looks like it will accept drag-and-drop without a row
This commit is contained in:
parent
b2f3bc7eaf
commit
abc1852ff8
1 changed files with 3 additions and 1 deletions
|
@ -2875,6 +2875,9 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (index == NSOutlineViewDropOnItemIndex)
|
||||||
|
return NSDragOperationNone;
|
||||||
|
|
||||||
if (item)
|
if (item)
|
||||||
{
|
{
|
||||||
index = [fTableView rowForItem: item] + 1;
|
index = [fTableView rowForItem: item] + 1;
|
||||||
|
@ -2889,7 +2892,6 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||||
return NSDragOperationNone;
|
return NSDragOperationNone;
|
||||||
}
|
}
|
||||||
|
|
||||||
#warning don't accept drop on overall group (without groups, or maybe with?)
|
|
||||||
- (BOOL) outlineView: (NSOutlineView *) outlineView acceptDrop: (id < NSDraggingInfo >) info item: (id) item childIndex: (NSInteger) newRow
|
- (BOOL) outlineView: (NSOutlineView *) outlineView acceptDrop: (id < NSDraggingInfo >) info item: (id) item childIndex: (NSInteger) newRow
|
||||||
{
|
{
|
||||||
NSPasteboard * pasteboard = [info draggingPasteboard];
|
NSPasteboard * pasteboard = [info draggingPasteboard];
|
||||||
|
|
Loading…
Reference in a new issue