Call abortEditing on outline view instead of cancelOperation

I’m not sure if it is necessary to manually refocus the outline view after aborting the field editor, does seem like a bug and will most likely not be present for view-based outline views.
This commit is contained in:
Allan Odgaard
2015-07-23 12:50:21 +02:00
parent 58dc3070ba
commit 34ebabdc87
2 changed files with 1 additions and 11 deletions

View File

@@ -358,7 +358,7 @@ struct expansion_state_t
{
NSLog(@"%s refresh while editing row", sel_getName(_cmd));
_pendingEditURL = [[_outlineView itemAtRow:[_outlineView editedRow]] url];
[_outlineView cancelOperation:self];
[_outlineView abortEditing];
}
[_outlineView beginUpdates];

View File

@@ -231,16 +231,6 @@
[super draggedImage:anImage endedAt:aPoint operation:aDragOperation];
}
// ========================
// = Field Editor Support =
// ========================
- (void)cancelOperation:(id)sender
{
if([self abortEditing])
[[self window] makeFirstResponder:self]; // Restore focus
}
// ==================
// = Mouse Tracking =
// ==================