From abc1852ff88da952ac44bd10ee1565ee4f9ac11e Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 7 Jan 2012 16:01:28 +0000 Subject: [PATCH] #4701 Table looks like it will accept drag-and-drop without a row --- macosx/Controller.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index 109202ae7..6d1f8bf3d 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -2875,6 +2875,9 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy } else { + if (index == NSOutlineViewDropOnItemIndex) + return NSDragOperationNone; + if (item) { index = [fTableView rowForItem: item] + 1; @@ -2889,7 +2892,6 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy 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 { NSPasteboard * pasteboard = [info draggingPasteboard];