aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-09-13 06:20:37 +0200
committerMax <post@wickenrode.com>2015-09-13 06:20:37 +0200
commit42ae68bcfbcabf2772933b838e63a4c8ad10c28e (patch)
treeb6c12696d193bdef8012e13bcc2d27800f1033ab
parentfa2cd0b4841324776b10d968e1250676b0c65e32 (diff)
downloadsequelpro-42ae68bcfbcabf2772933b838e63a4c8ad10c28e.tar.gz
sequelpro-42ae68bcfbcabf2772933b838e63a4c8ad10c28e.tar.bz2
sequelpro-42ae68bcfbcabf2772933b838e63a4c8ad10c28e.zip
Fix an exception when pressing return in the table indexes view (fixes #2217)
-rw-r--r--Source/SPTableView.m5
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];