From 55e07536d9d4f5b30c11c5bfaf7f5f98739ab71c Mon Sep 17 00:00:00 2001 From: Klaas Pieter Annema Date: Wed, 29 Jun 2011 16:03:48 +0200 Subject: [PATCH] don't start dragging if there are no rows --- AppKit/CPTableView.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index 8e4e25c56..0677dca7d 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -2770,7 +2770,7 @@ Your delegate can implement this method to avoid subclassing the tableview to ad */ - (BOOL)canDragRowsWithIndexes:(CPIndexSet)rowIndexes atPoint:(CGPoint)mouseDownPoint { - return YES; + return [rowIndexes count] > 0 && [self numberOfRows] > 0; } /*!