diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-02-18 20:30:08 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-02-18 20:30:08 +0000 |
commit | 414e419e7cc3b5a5600a1629c2d7caf606132e91 (patch) | |
tree | f36ad6ce3500304ce2d049ddec2a0a9885c7fea8 /Source/SPQueryController.m | |
parent | 8544c65427a4d7b46c5338ea2a4f15363a921144 (diff) | |
download | sequelpro-414e419e7cc3b5a5600a1629c2d7caf606132e91.tar.gz sequelpro-414e419e7cc3b5a5600a1629c2d7caf606132e91.tar.bz2 sequelpro-414e419e7cc3b5a5600a1629c2d7caf606132e91.zip |
• fixed threading issue if user performs query in Custom Query all the time by holding down ⌘R for a long time caused by updating the history
- removed unnecessary updating of the historyButton
- updating of all docs is now performedOnMainThread:waitUntilDone:NO
Diffstat (limited to 'Source/SPQueryController.m')
-rw-r--r-- | Source/SPQueryController.m | 2 |
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]; } |