aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-04-23 00:54:04 +0000
committerrowanbeentje <rowan@beent.je>2010-04-23 00:54:04 +0000
commit598adc2028c9a250ad68b100f8e9def6c2850b8c (patch)
tree79af66aa7f223f9d2124da923a924b9270471479 /Source
parent2124b2987a31ad704adb5eb68157cd2b1f396ccf (diff)
downloadsequelpro-598adc2028c9a250ad68b100f8e9def6c2850b8c.tar.gz
sequelpro-598adc2028c9a250ad68b100f8e9def6c2850b8c.tar.bz2
sequelpro-598adc2028c9a250ad68b100f8e9def6c2850b8c.zip
- SPNarrowDownCompletion: Pass NSApp certain events *after* processing locally, to fix further crashes like http://spbug.com/l/139 .
Diffstat (limited to 'Source')
-rw-r--r--Source/SPNarrowDownCompletion.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m
index 50b4e953..322e65cc 100644
--- a/Source/SPNarrowDownCompletion.m
+++ b/Source/SPNarrowDownCompletion.m
@@ -790,9 +790,9 @@
if(commonPrefixWasInsertedByAutoComplete) {
[theView setSelectedRange:theCharRange];
[theView insertText:originalFilterString];
- [NSApp sendEvent:event];
[theView setCompletionIsOpen:NO];
[self close];
+ [NSApp sendEvent:event];
break;
}
}
@@ -895,7 +895,6 @@
if(([event clickCount] == 2)) {
[self completeAndInsertSnippet];
} else {
- [NSApp sendEvent:event];
if(!NSPointInRect([NSEvent mouseLocation], [self frame])) {
if(autoCompletionMode) {
if(commonPrefixWasInsertedByAutoComplete) {
@@ -904,8 +903,10 @@
}
}
if(cursorMovedLeft) [theView performSelector:@selector(moveRight:)];
+ [NSApp sendEvent:event];
break;
}
+ [NSApp sendEvent:event];
}
}
else