From 8138d4dd043991af0472299711e254433ab6591a Mon Sep 17 00:00:00 2001 From: Bibiko Date: Wed, 31 Mar 2010 14:50:04 +0000 Subject: =?UTF-8?q?=E2=80=A2=20if=20document=20window=20will=20close=20sen?= =?UTF-8?q?t=20a=20'cancelPreviousPerformRequestsWithTarget'=20to=20the=20?= =?UTF-8?q?custom=20query=20editor=20to=20stop=20auto-completion=20and=20a?= =?UTF-8?q?uto-help=20timer=20to=20avoid=20crashes=20after=20closing=20?= =?UTF-8?q?=E2=80=A2=20improved=20some=20minor=20stuff=20for=20completion'?= =?UTF-8?q?s=20re-invocation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPNarrowDownCompletion.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/SPNarrowDownCompletion.m') diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m index 287fe98d..bfe3db99 100644 --- a/Source/SPNarrowDownCompletion.m +++ b/Source/SPNarrowDownCompletion.m @@ -165,8 +165,8 @@ [stateTimer release]; stateTimer = nil; if(syncArrowImages) [syncArrowImages release]; - usleep(1000); - [self performSelectorOnMainThread:@selector(reInvokeCompletion) withObject:nil waitUntilDone:NO]; + [self performSelectorOnMainThread:@selector(reInvokeCompletion) withObject:nil waitUntilDone:YES]; + closeMe = YES; return; } } -- cgit v1.2.3