if the new proposed selection is empty the tableview should not deselect any rows.

This commit is contained in:
Randall Luecke committed 2010-08-17 00:01:33 -05:00
1 parent 88408fc0ea
commit d7540eea84
1 file changed
+4
+4
View File
@@ -3306,6 +3306,10 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
if (![_delegate tableView:self shouldSelectRow:index])
[newSelection removeIndex:index];
}
// as per cocoa
if ([newSelection count] === 0)
return;
}
// if empty selection is not allowed and the new selection has nothing selected, abort