diff options
author | Max <post@wickenrode.com> | 2015-09-13 06:20:37 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-09-25 17:19:07 +0200 |
commit | 69375fa0b8266d6515598563c57cbb9fc6af20ed (patch) | |
tree | 17bf22497a8a1a47fc8bb1d991cba92a7dcaac9d | |
parent | d910bdc047aae992bf23ef2db2ac4f502aabd2b5 (diff) | |
download | sequelpro-69375fa0b8266d6515598563c57cbb9fc6af20ed.tar.gz sequelpro-69375fa0b8266d6515598563c57cbb9fc6af20ed.tar.bz2 sequelpro-69375fa0b8266d6515598563c57cbb9fc6af20ed.zip |
Fix an exception when pressing return in the table indexes view (fixes #2217)
-rw-r--r-- | Source/SPTableView.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPTableView.m b/Source/SPTableView.m index 89550dd8..72535038 100644 --- a/Source/SPTableView.m +++ b/Source/SPTableView.m @@ -194,8 +194,9 @@ (![[[[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]; |