aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-02-18 20:30:08 +0000
committerBibiko <bibiko@eva.mpg.de>2010-02-18 20:30:08 +0000
commit414e419e7cc3b5a5600a1629c2d7caf606132e91 (patch)
treef36ad6ce3500304ce2d049ddec2a0a9885c7fea8 /Source/CustomQuery.m
parent8544c65427a4d7b46c5338ea2a4f15363a921144 (diff)
downloadsequelpro-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/CustomQuery.m')
-rw-r--r--Source/CustomQuery.m10
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index e21d6931..e586557e 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -712,15 +712,9 @@
}
// add query to history
- // if(!queriesSeparatedByDelimiter) { // TODO only add to history if no “delimiter” command was used
- if(!reloadingExistingResult && [usedQuery length]) {
-
- // Register new history item
+ if(!reloadingExistingResult && [usedQuery length])
[[SPQueryController sharedQueryController] addHistory:usedQuery forFileURL:[tableDocumentInstance fileURL]];
-
- // Refresh history popup menu
- [self performSelector:@selector(historyItemsHaveBeenUpdated:) withObject:self afterDelay:0.0];
- }
+
// Error checking
if ( [mySQLConnection queryCancelled] || ([errors length] && !queryIsTableSorter)) {