mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-23 15:05:52 +00:00
if the new proposed selection is empty the tableview should not deselect any rows.
This commit is contained in:
1 parent
88408fc0ea
commit
d7540eea84
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user