diff options
author | Abhi Beckert <abhi@abhibeckert.com> | 2016-03-18 16:51:54 +1000 |
---|---|---|
committer | Abhi Beckert <abhi@abhibeckert.com> | 2016-03-18 16:51:54 +1000 |
commit | 693fa4cebbca5062b810f6bdb6682e7995926741 (patch) | |
tree | 5389f3fb528a59b5e0587b72297b8cdfa5b990af /Source | |
parent | 92ee758b8c2d75782ed4b83ac56068606ef5b27a (diff) | |
parent | 89bda16ba81f4826f27d14dfb2c1a20aa5f95fa8 (diff) | |
download | sequelpro-693fa4cebbca5062b810f6bdb6682e7995926741.tar.gz sequelpro-693fa4cebbca5062b810f6bdb6682e7995926741.tar.bz2 sequelpro-693fa4cebbca5062b810f6bdb6682e7995926741.zip |
Merge branch 'master' into issue-346
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPTableView.m | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Source/SPTableView.m b/Source/SPTableView.m index 84e43a26..df48a407 100644 --- a/Source/SPTableView.m +++ b/Source/SPTableView.m @@ -190,8 +190,7 @@ return; } else { - [super keyDown:theEvent]; - return; + goto pass_keyDown_to_super; } } @@ -227,8 +226,17 @@ return; } - - [super keyDown:theEvent]; + +pass_keyDown_to_super: + @try { + [super keyDown:theEvent]; + } + @catch (NSException *ex) { + // debug code for #2445 + NSString *ownId = [NSString stringWithFormat:@"%@(%@)",self,([self respondsToSelector:@selector(identifier)]? [self identifier] : @"-N/A-")]; + [NSException raise:NSInternalInconsistencyException + format:@"%s: passing event to super failed! (issue #2445)\n\nOriginal exception:\n%@\n\nEvent:\n %@\nDelegate:\n %@\nself:\n %@",__PRETTY_FUNCTION__,ex,theEvent,[self delegate],ownId]; + } } /** |