aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPQueryController.m')
-rw-r--r--Source/SPQueryController.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/SPQueryController.m b/Source/SPQueryController.m
index ae83a25d..0ff0fac7 100644
--- a/Source/SPQueryController.m
+++ b/Source/SPQueryController.m
@@ -584,6 +584,12 @@ static SPQueryController *sharedQueryController = nil;
{
if([historyContainer objectForKey:[fileURL absoluteString]])
[historyContainer setObject:historyArray forKey:[fileURL absoluteString]];
+
+ // 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];
+
}
- (void)addFavorite:(NSDictionary *)favorite forFileURL:(NSURL *)fileURL