mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-15 11:13:50 +00:00
Fixed infinite loop when finished editing a tableview cell.
This commit is contained in:
1 parent
aeb2671fc0
commit
c028c0ad26
1 file changed
+8
@@ -3369,6 +3369,14 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
|
||||
*/
|
||||
- (void)_commitDataViewObjectValue:(id)sender
|
||||
{
|
||||
/*
|
||||
makeFirstResponder at the end of this method causes the dataview to resign.
|
||||
If the dataview resigning triggers the action (as CPTextField does), we come right
|
||||
back here and start an infinite loop. So we have to check this flag first.
|
||||
*/
|
||||
if (_editingCellIndex === nil)
|
||||
return;
|
||||
|
||||
_editingCellIndex = nil;
|
||||
|
||||
if (_implementedDataSourceMethods & CPTableViewDataSource_tableView_setObjectValue_forTableColumn_row_)
|
||||
|
||||
Reference in new issue
Block a user