aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPQueryController.m')
-rw-r--r--Source/SPQueryController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPQueryController.m b/Source/SPQueryController.m
index e19a49e5..8b1b6c8e 100644
--- a/Source/SPQueryController.m
+++ b/Source/SPQueryController.m
@@ -589,7 +589,7 @@ static SPQueryController *sharedQueryController = nil;
// Inform all opened documents to update the history list
for(id doc in [[NSDocumentController sharedDocumentController] documents])
if([[doc valueForKeyPath:@"customQueryInstance"] respondsToSelector:@selector(historyItemsHaveBeenUpdated:)])
- [[doc valueForKeyPath:@"customQueryInstance"] historyItemsHaveBeenUpdated:self];
+ [[doc valueForKeyPath:@"customQueryInstance"] performSelectorOnMainThread:@selector(historyItemsHaveBeenUpdated:) withObject:self waitUntilDone:NO];
}