diff options
author | Max <post@wickenrode.com> | 2015-09-13 06:20:37 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-09-13 06:20:37 +0200 |
commit | 42ae68bcfbcabf2772933b838e63a4c8ad10c28e (patch) | |
tree | b6c12696d193bdef8012e13bcc2d27800f1033ab /Source | |
parent | fa2cd0b4841324776b10d968e1250676b0c65e32 (diff) | |
download | sequelpro-42ae68bcfbcabf2772933b838e63a4c8ad10c28e.tar.gz sequelpro-42ae68bcfbcabf2772933b838e63a4c8ad10c28e.tar.bz2 sequelpro-42ae68bcfbcabf2772933b838e63a4c8ad10c28e.zip |
Fix an exception when pressing return in the table indexes view (fixes #2217)
Diffstat (limited to 'Source')
-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]; |