Skip to content
Permalink
Browse files

Fix an exception when pressing return in the table indexes view (fixes

  • Loading branch information...
dmoagx committed Sep 13, 2015
1 parent fa2cd0b commit 42ae68bcfbcabf2772933b838e63a4c8ad10c28e
Showing with 3 additions and 2 deletions.
  1. +3 −2 Source/SPTableView.m
@@ -194,8 +194,9 @@ - (void)keyDown:(NSEvent *)theEvent
(![[[[self delegate] class] description] isEqualToString:@"SPConnectionController"])) {

// Ensure that editing is permitted
if (![[self delegate] tableView:self shouldEditTableColumn:[[self tableColumns] objectAtIndex:0] row:[self selectedRow]]) return;

if(![[self delegate] respondsToSelector:@selector(tableView:shouldEditTableColumn:row:)]) return; // disallow by default
if(![[self delegate] tableView:self shouldEditTableColumn:[[self tableColumns] objectAtIndex:0] row:[self selectedRow]]) return;

// Trigger a cell edit
[self editColumn:0 row:[self selectedRow] withEvent:nil select:YES];

0 comments on commit 42ae68b

Please sign in to comment.
You can’t perform that action at this time.