From 46bab7d9ba5a53bc4718b9812b98f051d8735839 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sat, 20 Mar 2010 01:16:35 +0000 Subject: - Alter historyItemsHaveBeenUpdated: call on startup to be performed on main thread without a delay to fix http://log.sequelpro.com/view/33 --- Source/CustomQuery.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source') diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index d0553f27..57d47b7b 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -1294,7 +1294,7 @@ [autouppercaseKeywordsMenuItem setState:([prefs boolForKey:SPCustomQueryAutoUppercaseKeywords]?NSOnState:NSOffState)]; if ( [[SPQueryController sharedQueryController] historyForFileURL:[tableDocumentInstance fileURL]] ) - [self performSelector:@selector(historyItemsHaveBeenUpdated:) withObject:self afterDelay:0.0]; + [self performSelectorOnMainThread:@selector(historyItemsHaveBeenUpdated:) withObject:self waitUntilDone:YES]; // Populate query favorites [self queryFavoritesHaveBeenUpdated:nil]; -- cgit v1.2.3