aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPTableView.m7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/SPTableView.m b/Source/SPTableView.m
index d1aa5700..fd9c09d0 100644
--- a/Source/SPTableView.m
+++ b/Source/SPTableView.m
@@ -137,7 +137,12 @@
*/
- (void)rightMouseDown:(NSEvent *)event
{
- if ([[self delegate] tableView:self shouldSelectRow:[self rowAtPoint:[self convertPoint:[event locationInWindow] fromView:nil]]]) {
+ if ([[self delegate] respondsToSelector:@selector(tableView:shouldSelectRow:)]) {
+ if ([[self delegate] tableView:self shouldSelectRow:[self rowAtPoint:[self convertPoint:[event locationInWindow] fromView:nil]]]) {
+ [super rightMouseDown:event];
+ }
+ }
+ else {
[super rightMouseDown:event];
}
}