diff options
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r-- | Source/CustomQuery.m | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |