aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPNarrowDownCompletion.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-07-17 16:32:28 +0000
committerrowanbeentje <rowan@beent.je>2010-07-17 16:32:28 +0000
commit8f5362b01faf105b6ff8d1cafaccf5a72560d7e9 (patch)
tree2e24f1ebcc1a00fbef53cbdcdfc636b0a5c7ac57 /Source/SPNarrowDownCompletion.m
parentd197a5157f815845e2a709d2c942c707758901ee (diff)
downloadsequelpro-8f5362b01faf105b6ff8d1cafaccf5a72560d7e9.tar.gz
sequelpro-8f5362b01faf105b6ff8d1cafaccf5a72560d7e9.tar.bz2
sequelpro-8f5362b01faf105b6ff8d1cafaccf5a72560d7e9.zip
- Tweak custom query autocompletion to no longer show a key-capturing invisible empty autocomplete when no autocomplete matches are found
Diffstat (limited to 'Source/SPNarrowDownCompletion.m')
-rw-r--r--Source/SPNarrowDownCompletion.m8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m
index eaa3c43c..508df857 100644
--- a/Source/SPNarrowDownCompletion.m
+++ b/Source/SPNarrowDownCompletion.m
@@ -749,8 +749,12 @@
- (void)orderFront:(id)sender
{
[self filter];
- [super orderFront:sender];
- [self performSelector:@selector(watchUserEvents) withObject:nil afterDelay:0.05];
+ if (!closeMe) {
+ [super orderFront:sender];
+ [self performSelector:@selector(watchUserEvents) withObject:nil afterDelay:0.05];
+ } else {
+ [self close];
+ }
}
- (void)watchUserEvents