diff options
author | stuconnolly <stuart02@gmail.com> | 2011-09-13 22:03:08 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2011-09-13 22:03:08 +0000 |
commit | e4e135d7d9bc6a51a69d15c57952e44d6059daf9 (patch) | |
tree | 4939465deee51a52f8f5b5eb3f6f243665c95607 /Source | |
parent | b98ecf79612efe4753c885670bad1a16c75c79c0 (diff) | |
download | sequelpro-e4e135d7d9bc6a51a69d15c57952e44d6059daf9.tar.gz sequelpro-e4e135d7d9bc6a51a69d15c57952e44d6059daf9.tar.bz2 sequelpro-e4e135d7d9bc6a51a69d15c57952e44d6059daf9.zip |
Improve custom query result export menu item validation to prevent triggering an export whilst a query is being performed.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPExportController.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPExportController.m b/Source/SPExportController.m index 2c93128f..a0cf66b7 100644 --- a/Source/SPExportController.m +++ b/Source/SPExportController.m @@ -717,7 +717,7 @@ static const NSString *SPSQLExportDropEnabled = @"SQLExportDropEnabled"; - (BOOL)validateMenuItem:(NSMenuItem *)menuItem { if ([menuItem action] == @selector(exportCustomQueryResultAsFormat:)) { - return ([[customQueryInstance currentResult] count] > 1); + return (([[customQueryInstance currentResult] count] > 1) && (![tableDocumentInstance isProcessing])); } return YES; |