aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableView.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTableView.m')
-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];