diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-02-05 16:41:07 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-02-05 16:41:07 +0000 |
commit | 843eeb2b7af11b97bdcdb9f332a9ee44dae49c0f (patch) | |
tree | e81636cae149f61f50cf07eb89cf66ec50e38581 /Source/SPQueryController.m | |
parent | 004b17bd21089d22f353a8fea7790ec4d3982325 (diff) | |
download | sequelpro-843eeb2b7af11b97bdcdb9f332a9ee44dae49c0f.tar.gz sequelpro-843eeb2b7af11b97bdcdb9f332a9ee44dae49c0f.tar.bz2 sequelpro-843eeb2b7af11b97bdcdb9f332a9ee44dae49c0f.zip |
• fixed synchronisation of history lists if more than one instance of the same SPF file is open
- simplified code a bit
Diffstat (limited to 'Source/SPQueryController.m')
-rw-r--r-- | Source/SPQueryController.m | 6 |
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 |