don't start dragging if there are no rows

This commit is contained in:
Klaas Pieter Annema
2011-06-29 16:04:46 +02:00
parent e552b022ba
commit 55e07536d9
+1 -1
View File
@@ -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;
}
/*!